Hi guys! I was creating more one char in fighter factory. But someone knows how to limit izanagi activations to 10? It's because with normal coding I can do it infinity times... Thanks a lot for the answers...
You need to use vars... In the intro state of Danzou, you should set the var to 10 (the amount of Izanagi you want to use in all the round) with a VarSet:
[State 0, VarSet] type = VarSet trigger1 = time = 0 v = 5;this is the var number you will use to count Izanagi uses value = 10;this is the amount of Izanagi you want to start the round with
Then, you add this to the Izanagi state, so it decreases the var 5 value by 1 each time it's used:
[State 0, VarAdd] type = VarAdd trigger1 = time = 0 v = 5;the var you set at the intro value = -1;the value you want to decrease it, -1 will decrease by 1
Finally, you add this to the ChangeState of Izanagi in the CMD file:
[State -1, Izanagi] type = ChangeState value = 1000 ;here goes the Izanagi state number trigger1 = var(5) > 0 ;one or more Izanagi left to use trigger1 = command = "z" trigger1 = statetype = S trigger1 = ctrl
Hope you understand it.
Message edited by MGSSJ2 - Thursday, 2011-08-04, 8:27 AM