News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

remove explod *SOLVED*

Started by sgn15, December 11, 2010, 11:54:41 AM

Previous topic - Next topic

sgn15

state 4014 is a helper. is there a more appropriate trigger than what i did? i think its not working

Spoiler (click to show)
Quote[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = stateno != 4014
id = 60012

Quote;-------------------------------------------------------------------------------
[Statedef 4014]
type    = S
movetype= A
physics = N
poweradd= 0
ctrl = 0
velset = 0,0
anim = 4014
sprpriority = 4

[State HitOverride]
type = HitOverride
trigger1 = 1
slot = 1
attr = SCA,AA,AP,AT
stateno = 6007
time = 1

;[State 0, SuperPause]
;type = SuperPause
;trigger1 = animelem = 10
;time = 100
;darken = 1
;p2defmul = 0
;unhittable = 1

[State 4012, 1]
type = Projectile
trigger1 = AnimElem = 10
projanim = 6004
projid = 60041
projpriority = 1
projheightbound = -240, 100
projedgebound = 100
projscreenbound = 100
projshadow = -1
projscale = 1,1
offset =  -40,-152
velocity = 40,18
attr = S, SP
damage   = 100
animtype = heavy
guardflag = MA
hitflag = MAFDP
pausetime = 50,10
hitsound   = 5,0
;sparkno = s6001
sparkxy = 0, 45 ;-5,50
guardsound = 6,0
ground.type = Low
ground.slidetime = 1
ground.hittime  = 20
ground.velocity = -1,0
air.animtype = Back
air.velocity = -1,-4
air.juggle = 3
air.fall = 1
down.velocity = -4,-6
down.hittime = 30
down.bounce = 0
fall = 1

[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, ChangeState]
type = ChangeState
trigger1 = ishelper(12) && animtime = 0
value = 6009
ctrl = 0

[State 0, VelSet]
type = VelSet
trigger1 = ishelper(12) && animtime = 0
x = -2
y = 0

Kohaku~★

Since it's a helper...


trigger1 = Helper(xxxx),Stateno != 4014


xxxx = ID of your helper.

sgn15

helper is an error so i replaced it with ishelper
but still not working.

leandro1412

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!!!
________________________________

sgn15

#4
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

leandro1412

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!!!
________________________________