YesNoOk
avatar

remove explod *SOLVED* (Read 1833 times)

Started by sgn15, December 11, 2010, 11:54:41 am
Share this topic:
remove explod *SOLVED*
New #1  December 11, 2010, 11:54:41 am
  • ***
state 4014 is a helper. is there a more appropriate trigger than what i did? i think its not working

Spoiler, click to toggle visibilty
Last Edit: December 12, 2010, 05:02:18 am by sgn15
Re: remove explod
#2  December 11, 2010, 12:57:59 pm
  • ****
  • Miss Pink Maid♪
    • kohaku.trinitymugen.net
Since it's a helper...


trigger1 = Helper(xxxx),Stateno != 4014


xxxx = ID of your helper.
Re: remove explod
#3  December 11, 2010, 01:58:24 pm
  • ***
helper is an error so i replaced it with ishelper
but still not working.
Re: remove explod
#4  December 11, 2010, 05:41:37 pm
  • ***
  • Life is Life... WTF!!
    • www.mugenimperiolatino.com/index.php
improve your code (RemoveExplod) in your helper

here u have your change state or destroyself in some case... anyway then before of changestate add the removeexplod

[State 0, Explod]
type = Explod
trigger1 = animelem = 3
anim = 6000
ID = 60012
pos = -15,-120
postype = p1  ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = 1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -2
supermove
pausemove
scale = 1,1
sprpriority = 7
ontop = 0
shadow = 0,0,0
ownpal = 0
removeongethit = 0
supermovetime = 99999999
pausemovetime = 99999999

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = ishelper(12) && animtime = 0
id = 60012

[State 0, ChangeState]
type = ChangeState
trigger1 = ishelper(12) && animtime = 0
value = 6009
ctrl = 0

or you can remove in state 6009 using !Time to time 0

[Statedef 6009]
type = s
anim = 6009
.
.
.
.


[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = !Time
id = 60012


something like that.
[

Nice userbars no? :P Make click & Download something nice for your Mugen!!!
________________________________
Re: remove explod
#5  December 12, 2010, 04:10:50 am
  • ***
ok ill explain the need  for the changestates of helpers in this situation

400 - my char calls helpers
401 - helpers' walking forward states
402 - helpers' stance
403-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 automatically

I 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 = RemoveExplod
trigger1 = isHelper(11) && parent, stateno != 4014
id = 60012
Last Edit: December 12, 2010, 04:20:41 am by sgn15
Re: remove explod
#6  December 12, 2010, 04:22:50 am
  • ***
  • Life is Life... WTF!!
    • www.mugenimperiolatino.com/index.php
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 = RemoveExplod
trigger1 = !Time
id = 60012

add removeongethit = 1


[State 0, Explod]
type = Explod
trigger1 = animelem = 3
anim = 6000
ID = 60012
pos = -15,-120
postype = p1
facing = 1
vfacing = 1
bindtime = 1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -2
supermove
pausemove
scale = 1,1
sprpriority = 7
ontop = 0
shadow = 0,0,0
ownpal = 0
removeongethit = 1
supermovetime = 99999999
pausemovetime = 99999999

by the way these codes are unnecessary.

facing = 1
vfacing = 1
bindtime = 1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -2
supermove
pausemove
scale = 1,1
ontop = 0
shadow = 0,0,0
 

byebye.
[

Nice userbars no? :P Make click & Download something nice for your Mugen!!!
________________________________