help with cmd

Started by johnny916, February 14, 2010, 12:18:30 AM

Previous topic - Next topic

johnny916

i have a character with a constant helper that poses as another character, its activated by rootdist and particular commands, for the commands i cant figure out how to stop the helper from being called again for an attack until its back to its stance next to p1 here are the codes

[State -3, Nemu]
type = Helper
trigger1 = NumHelper(69999) = 0
helpertype = normal
name  = "Nemu"
ID = 69999
stateno  = 69999
pos  = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal  = 1

;call helper

[Statedef 3617]
type    = S
movetype= A
physics = S
juggle  = 0
velset = 0,0
anim = 3617
ctrl = 0
sprpriority = 4
poweradd = -500
hitcountpersist = 1

[State 3617, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;helper cns

[State 0, Helper]
type = ChangeState
trigger1 = Root,anim = 3617
value = 60111
ignorehitpause   = 1

[Statedef 60111]
type = S
movetype = A
physics = S
anim = 60111
ctrl = 0
sprpriority = 5
ownpal = 1

[State 60112, 1]
type = VelSet
trigger1 = Time >= 10
x = const(velocity.run.fwd.x)

[State 0, MakeDust]
type = MakeDust
trigger1 = 1
pos = -5,0
spacing = 4

[State 0, 1]
type = hitdef
trigger1 = animelem = 1
trigger2 = animelem = 2
trigger3 = animelem = 3
trigger4 = animelem = 4
trigger5 = animelem = 5
attr = S, SP
hitflag = MAFD
animtype = hard
damage = 2,2
guardflag = MA
priority = 3, Hit
pausetime = 8,5
hitsound = S4000,0
sparkno = S5434435
sparkxy = -10,-75
guardsound = s120,0
ground.type = low
ground.slidetime = 6
ground.hittime = 9
ground.velocity = 0,0
air.velocity = 0,0
getpower = 0
envshake.time = 3
envshake.ampl = 3

[State 0, Helper]
type = ChangeState
trigger1 = animtime = 0
value  = 69999

;command

[State -1, nemu1]
type = ChangeState
value = 3617
triggerall = Helper(69999),StateNo != 60111;dont know
triggerall = command = "nemu1"
triggerall = command != "shockM"
trigger1 = statetype = S
trigger1 = ctrl

Cyanide

What's the state of the helpers stance?

Just do helper(ID), stateno = stance state

as another requirement.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

johnny916

her stance is state 69999, so maybe a better way to ask this question would be is there a way to make it so that state 3617 cant be activated unless the helper is in state 69999

Byakko

QuoteJust do helper(ID), stateno = stance state
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

Cyanide

Change this line

triggerall = Helper(69999),StateNo != 60111;dont know

so stance is the requirement.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

johnny916

#5
i tried that but it still didnt work, i put this

Triggerall = Helper(69999), stateno = 69999

i see now thats what you were telling me to do

Cyanide

So, it's fixed or not? Cos that should fix it. You cannot enter the state unless the helper is in state 69999

If it's not working, turn on debug and check the states you're entering.

If it IS fixed, mark this as solved.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.