The intention is to use an action 7 to skip a sprite if the parameter value doesn't match x (in this case x = 2, but that's not significant)
This code doesn't work (checking param 0 as a dword - TTDPatch wiki says params are 4 bytes)
Code: Select all
252 * 9 07 \b00 04 \7! \d02 \b01 // skip one action, if the parameter doesn't match.
Code: Select all
252 * 9 07 \b00 01 \7! \b02 \b01 // skip one action, if the parameter doesn't match.
This however does work (setting the value of param 0 with an action D)
Using the action D is just a test to prove that the action 7 is not fundamentally wrong.
Code: Select all
251 * 9 0D \b00 \D= FF FF \d02 // force the value of param 0 to be 2
252 * 9 07 \b00 04 \7! \d02 \b01 // skip one action, if the parameter doesn't match.
I'm sure I'm doing something stupid
cheers,
Andy