YesNoOk
avatar

Syntax for a trigger on a Changestate (Read 903 times)

Started by DrStrange, January 27, 2010, 05:52:12 pm
Share this topic:
Re: Syntax for a trigger on a Changestate
#21  January 28, 2010, 06:49:21 am
  • **
  • Don't be an Anti-Pockite
    • USA
Nevermind, I got it working and I think I understand why  :)

Thanks to everyone who took the time to reply.

Re: Syntax for a trigger on a Changestate
#22  January 28, 2010, 10:27:26 am
  • ******
Right now, you are inside the state of the move. Its movetype is I.
If you get hit, you move to another state, and then your movetype become H.
So at this point when movetype becomes H, you are in another state and you can't read what was in your previous state - so you can't trigger your changestate. This is what Rajaa was finding odd.
There are a few solutions for that.
-Either you put your changestate in the gethit state, triggering if prevstateno is the state of your move. This isn't really a great idea to override the gethit states for that.
-Or you add a changestate triggered by prevstateno as your move and movetype = H, and you put that changestate *in one of the negative states* (-1 or -2 preferably). This is what I was first thinking of.
-Or you use a type = hitoverride with trigger1 = 1 and only that for a trigger, you don't need anything else.
There's no major difference between the last two possibilities.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.