YesNoOk
avatar

Helper changestate (Read 229 times)

Started by Liero, July 22, 2009, 05:22:18 am
Share this topic:
Helper changestate
#1  July 22, 2009, 05:22:18 am
  • **
    • http://rumblepk.tumblr.com/
I need to have a helper change the state of player1.  I have a bit of code that does this:

[State 6000, ReversalDef Normal SC]
type = ReversalDef
trigger1 = Time > 2
trigger1 = p2statetype!=A
attr = S, SA
reversal.attr = SC, NA, SA, HA
sparkno=-1
pausetime = 5,5
p1stateno = 6005
p2stateno = 6010

The problem is that as is the code will turn the actual helper (which is a shield animation) into that state rather than player1.  I've also tried p1stateno = root,6005, but that didn't work.  Not really sure where I saw that but anyways it didnt do anything different.

How can I get this to work the way I want to?
Re: Helper changestate
#2  July 22, 2009, 08:27:24 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
in the cmd, have the player check that he.

Has that helper
that helper is in that state
and then change the player accordingly.

Basically you have the player work out what the helper just did and THEN change, not have the helper make the player change.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Helper changestate
#3  July 23, 2009, 12:29:11 am
  • **
    • http://rumblepk.tumblr.com/
Awesome that worked! Thanks a ton!