Code Question. (Yea I know...ANOTHER ONE)

Started by Whack-a-Idiot, September 20, 2007, 11:13:14 PM

Previous topic - Next topic

Whack-a-Idiot

Well im trying to make a move require a power bar, but im not sure
what trigger is actually needed. ;P

Any help would be appreciated. ;D

iTorres


Sig Provided by Matrimelee

Whack-a-Idiot

Im sorry that this sounds really noobish, but could you show me an example of where to put it.

Renzo F

You have to create an ChangeState SCTRL in the CMD file, under [statedef -1]. The trigger should look like

command="nameofcommand" && power>=1000

Whack-a-Idiot

Thanks alot!
Know i think Ive got it all down, and it seems to be working too.

Thanks for your help!

Renzo F

Don't forget to tailor the trigger for the real conditions where the move should be performed or you'll be able to perform the move when you don't have control or in the air. (i.e.: check statetype!=A && ctrl).