Error with a trigger

Started by BlackFired, September 21, 2016, 06:22:43 PM

Previous topic - Next topic

BlackFired

Error parsing trigger1, 1
Error parsing [State -2, VarAdd]
Error in [Statedef -2]
Error in Kid Buu.cns:1208
Error loading chars/ff3_0/ff3_0.def
Error loading p1

This error gives me while I have the following trigger operation:

trigger1 = (playeridexist(56),pos x < 0)

Code:

[State -2, VarAdd]
type = VarAdd
trigger1 = (playeridexist(56),pos x < 0)
Fvar(10) = (playeridexist(56),pos x * 0.5)


I imagine that happening by using playeridexist (56), thought to replace the trigger, using a ifelse in var, not if it is recommended.
I hope prompt response and the cause of the error.

Niitris

Playeridexist can't be used as a redirect.

Replace that part with playerid(56).

altoiddealer

[State -2, VarAdd]
type = VarAdd
triggerall = playeridexist(56)
trigger1 = (playerid(56),pos x < 0)
Fvar(10) = (playerid(56),pos x * 0.5)


BlackFired

Quote from: altoiddealer on September 21, 2016, 10:10:53 PM
[State -2, VarAdd]
type = VarAdd
triggerall = playeridexist(56)
trigger1 = (playerid(56),pos x < 0)
Fvar(10) = (playerid(56),pos x * 0.5)

Oh thank you, if I run