Script Problem

General discussions about the Customizable MMBN program.

Script Problem

Postby lcarens » Tue Jul 14, 2009 11:28 am

<script_bar name="Right">
<script name="Check - Damage - 100 - Set Action Group - Light Notify - Check End" duration="0" />
<script name="Pan - RIGHT - 10 - 10" duration="0" />
<script name="Reset Counters" duration="100" />
</script_bar>

It works fine without:
<script name="Check - Damage - 100 - Set Action Group - Light Notify - Check End" duration="0" />

But when I add that in it freezes, and then the game restarts.
Image
lcarens
 
Posts: 22
Joined: Wed Jun 03, 2009 11:36 pm

Re: Script Problem

Postby Legendary Hoamaru » Tue Jul 14, 2009 5:51 pm

If you are Notifying, it should be Notify - Light Notify...actually for light damage you should use the Light Damage:

<script name="Check - Damage - 100 - Notify - Light Damage - Check End" duration="0" />
--------
Edit:

Ah, if you're keeping notification in the separate group, make sure you have the action group Light Notify like I've done in the bustershot, with the notification and destroy scripts in there.

I'll add a "Action Group does not exist" error for it in the next version as well.
Legendary Hoamaru
Site Admin
 
Posts: 37
Joined: Tue Jun 02, 2009 10:54 pm

Re: Script Problem

Postby lcarens » Tue Jul 14, 2009 8:18 pm

One more problem.
The rocket hits me too. :|
Image
lcarens
 
Posts: 22
Joined: Wed Jun 03, 2009 11:36 pm

Re: Script Problem

Postby Legendary Hoamaru » Wed Jul 15, 2009 1:46 am

I'll fix this for the next update. It'll prevent entities marked on the same side from damaging each other. I'll also add an extra script "Damage Ignore Side" in case someone does want an attack that can damage the player/allies.
Legendary Hoamaru
Site Admin
 
Posts: 37
Joined: Tue Jun 02, 2009 10:54 pm

Re: Script Problem

Postby lcarens » Wed Jul 15, 2009 1:47 am

How come the busters don't hurt you?
Image
lcarens
 
Posts: 22
Joined: Wed Jun 03, 2009 11:36 pm

Re: Script Problem

Postby Legendary Hoamaru » Wed Jul 15, 2009 4:36 am

Because it doesn't check damage until after it moves.
Legendary Hoamaru
Site Admin
 
Posts: 37
Joined: Tue Jun 02, 2009 10:54 pm

Re: Script Problem

Postby lcarens » Wed Jul 15, 2009 11:03 am

Could I do that with the rocket?
Or summon it in front of me?
Image
lcarens
 
Posts: 22
Joined: Wed Jun 03, 2009 11:36 pm

Re: Script Problem

Postby Legendary Hoamaru » Wed Jul 15, 2009 12:17 pm

Yes, you can summon it in front of you by using ADD.

ADD - CURRENT - 1

For the column.

If you want the rocket created at the entities current spot though, note the order of the scripts in Buster:


- <script_bar name="Right">
<script name="Check - Off Field All - Destroy Owner - Check End" duration="0" />
<script name="Move - RIGHT" duration="0" />
<script name="Check - Damage - 1 - Set Action Group - Light Notify - Check End" duration="0" />
<script name="Reset Counters" duration="0" />
</script_bar>

It moves right first, then it checks the damage.

Update 16B should be released today, you can now end the battle!
Legendary Hoamaru
Site Admin
 
Posts: 37
Joined: Tue Jun 02, 2009 10:54 pm


Return to Customizable MMBN General

Who is online

Users browsing this forum: No registered users and 1 guest

cron