Cmd Triggering (fatality)

Started by AlumDixon, September 26, 2009, 09:28:51 PM

Previous topic - Next topic

AlumDixon

#20
OK BIG BIG UPDATE!!! ima post some pics ina sec

--Update again.
Ok ok.. now its my cmd
When its round 2 and p1 has 1 life, i press my key or whatever and then it does this!


But problem is has to win a round
when using the bolded code it doesnt work. Its suppose to be you need to win a round in order to perform this state
[State -1, Fatality Start]
type = Changestate
triggerall = P2Life <= 1
trigger1 = Ctrl ;It must have the control.
trigger1 = command = "x"
;trigger1 = P2Life <= 1 ;Life of P2 must be equal the 1.
;trigger1 = NumHelper(9010) = 0 ;It cannot have another Helper as this in the screen.
;trigger1 = P2StateNo != 003 ;Opponent cannot be in Custom State.
trigger1 = RoundNo != 1 ;Round cannot be the first one.
trigger1 = var(58) >= 1 ;You must be to win one round before.
;trigger1 = statetype != A ;P1 cannot be in air.
;trigger1 = p2statetype != A ;P2 also not.
value = 9000

Could someone suggest what to change this to?

edit: heres my state -2s, i think these are a problem.

[State -2, 1]
type = varset
trigger1 = Win = 1
trigger1 = NumHelper(9010) = 0 ;Helper
v = 58
value = 1



[State -2, 2]
type = varset
trigger1 = Win = 1
trigger1 = NumHelper(9010) = 1
trigger1 = p2life != 0
v = 58
value = 0



[State -2, 3]
type = AttackMulSet
triggerall = !Var(58) && p2Life <= 1
trigger1 = RoundNo != 1 && Win = 1
trigger2 = P2StateNo = 003
value = 9999


[state -2, 4]
type = AssertSpecial
trigger1 = NumHelper(9010)=1
flag = nomusic
flag2 = nobardisplay

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]

AlumDixon


Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]

Byakko

#22
Debugging, lesson 1.
Use a DisplayToClipboard to display, one by one, the values of everything you use as trigger. Var(58), RoundNo, NumHelper(9010), Win, P2Life... See if they all are at the correct value at the correct moment.
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.

Cyanide

You still don't really get what's going on at all. Break your code down and get EACH BIT working. Don't try and do everything at once. If you don't understand something, putting all the code in at once won't help you. You need to work out what each function is for, and what it does.

Byakko's suggestion will definitely help with this

displaytoclipboard


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.