state 4014 is a helper. is there a more appropriate trigger than what i did? i think its not workingSpoiler, click to toggle visibiltyQuote[State 0, RemoveExplod]type = RemoveExplodtrigger1 = stateno != 4014id = 60012Quote;-------------------------------------------------------------------------------[Statedef 4014]type = Smovetype= Aphysics = Npoweradd= 0ctrl = 0velset = 0,0anim = 4014sprpriority = 4[State HitOverride]type = HitOverridetrigger1 = 1slot = 1attr = SCA,AA,AP,ATstateno = 6007time = 1;[State 0, SuperPause];type = SuperPause;trigger1 = animelem = 10;time = 100;darken = 1;p2defmul = 0;unhittable = 1[State 4012, 1]type = Projectiletrigger1 = AnimElem = 10projanim = 6004projid = 60041projpriority = 1projheightbound = -240, 100projedgebound = 100projscreenbound = 100projshadow = -1projscale = 1,1offset = -40,-152velocity = 40,18attr = S, SPdamage = 100animtype = heavyguardflag = MAhitflag = MAFDPpausetime = 50,10hitsound = 5,0;sparkno = s6001sparkxy = 0, 45 ;-5,50guardsound = 6,0ground.type = Lowground.slidetime = 1ground.hittime = 20ground.velocity = -1,0air.animtype = Backair.velocity = -1,-4air.juggle = 3air.fall = 1down.velocity = -4,-6down.hittime = 30down.bounce = 0fall = 1[State 0, Explod]type = Explodtrigger1 = animelem = 3anim = 6000ID = 60012pos = -15,-120postype = p1 ;p2,front,back,left,rightfacing = 1vfacing = 1bindtime = 1vel = 0,0accel = 0,0random = 0,0removetime = -2supermovepausemovescale = 1,1sprpriority = 7ontop = 0shadow = 0,0,0ownpal = 0removeongethit = 0supermovetime = 99999999pausemovetime = 99999999[State 0, ChangeState]type = ChangeStatetrigger1 = ishelper(12) && animtime = 0value = 6009ctrl = 0[State 0, VelSet]type = VelSettrigger1 = ishelper(12) && animtime = 0x = -2y = 0
improve your code (RemoveExplod) in your helperhere u have your change state or destroyself in some case... anyway then before of changestate add the removeexplod[State 0, Explod]type = Explodtrigger1 = animelem = 3anim = 6000ID = 60012pos = -15,-120postype = p1 ;p2,front,back,left,rightfacing = 1vfacing = 1bindtime = 1vel = 0,0accel = 0,0random = 0,0removetime = -2supermovepausemovescale = 1,1sprpriority = 7ontop = 0shadow = 0,0,0ownpal = 0removeongethit = 0supermovetime = 99999999pausemovetime = 99999999[State 0, RemoveExplod]type = RemoveExplodtrigger1 = ishelper(12) && animtime = 0id = 60012[State 0, ChangeState]type = ChangeStatetrigger1 = ishelper(12) && animtime = 0value = 6009ctrl = 0or you can remove in state 6009 using !Time to time 0 [Statedef 6009]type = sanim = 6009....[State 0, RemoveExplod]type = RemoveExplodtrigger1 = !Timeid = 60012something like that.
ok ill explain the need for the changestates of helpers in this situation400 - my char calls helpers401 - helpers' walking forward states402 - helpers' stance403-409, 4010,4011,4012,4013,4014 - helpers' 12 (with helper IDs 1-12) different attack states (all with projectiles coded inside each statedef)6007 - hit state of helpers (coded thru hitoverride)6009 - helpers' walking back states (what i mean is that after attacking, the helpers walk back)those are the states. i want the removeexplod to happen if for example the helpers are hit (and hitoverrides to state 6007) the explod disappears automaticallyI put removeexplode in statedef -2 (not in their individual statedefs)leandro, its not working. is there any other way?i also tried this but still not working (i think parent cant be used for explod, only for helpers?)Quote[State 0, RemoveExplod]type = RemoveExplodtrigger1 = isHelper(11) && parent, stateno != 4014id = 60012
then just when is hitted?so put the removeexplod into 6007 state or override state and add this line to your explod[State 0, RemoveExplod]type = RemoveExplodtrigger1 = !Timeid = 60012add removeongethit = 1[State 0, Explod]type = Explodtrigger1 = animelem = 3anim = 6000ID = 60012pos = -15,-120postype = p1facing = 1vfacing = 1bindtime = 1vel = 0,0accel = 0,0random = 0,0removetime = -2supermovepausemovescale = 1,1sprpriority = 7ontop = 0shadow = 0,0,0ownpal = 0removeongethit = 1supermovetime = 99999999pausemovetime = 99999999by the way these codes are unnecessary.facing = 1vfacing = 1bindtime = 1vel = 0,0accel = 0,0random = 0,0removetime = -2supermovepausemovescale = 1,1ontop = 0shadow = 0,0,0 byebye.