Hi, everyone!Well, i´ll try to explain, sorry for my bad english in advance... Is there any trigger or anything to make my char detect that the enemy puts him into a custom state (throws, for example)?What i want to do is to create a helper in Statedef -2 when the char is not in his own state.I know, the easy way could be to add all throws target states from all the chars of my project to be sure, but maybe there´s something better that i´m not watching right now... The helper code at this moment:Code: [state -2]type = Helpertriggerall = var(2) != 3 && life > 0triggerall = var(3) = 0trigger1 = stateno = 5100 && time = 1trigger2 = stateno = 5110 && time = 1trigger3 = stateno = 970 && time = 1id = 3110name = "xxx"sprpriority = 4pos = 0,-70postype = p1stateno = ifelse(FrontEdgeBodyDist <= 80, 3131, 3130)helpertype = normalkeyctrl = 0ownpal = 1persistent = 0Thanks in advance, my friends!
In statedef -3, you need to set this variable:[State -3, VarSet] ;custom state check resettype = VarSettrigger1 = 1var(59) = gametimeignorehitpause = 1Now in statedef -2, this line will detect if your character are in a custom state placed by the enemy:triggerX = var(59)!=gametime In other words, your helper will look like this: [state -2] type = Helpertriggerall = !NumHelper(3110) triggerall = var(2) != 3 && life > 0 triggerall = var(3) = 0 trigger1 = stateno = 5100 && time = 1 trigger2 = stateno = 5110 && time = 1 trigger3 = stateno = 970 && time = 1trigger4 = var(59)!=gametime id = 3110 name = "xxx" sprpriority = 4 pos = 0,-70 postype = p1 stateno = ifelse(FrontEdgeBodyDist <= 80, 3131, 3130) helpertype = normal keyctrl = 0 ownpal = 1 persistent = 0 ;this line does not work on negative states