YesNoOk
avatar

chaining two states (Read 139 times)

Started by Bannana, December 14, 2014, 11:44:17 pm
Share this topic:
chaining two states
#1  December 14, 2014, 11:44:17 pm
  • ***
  • Lacking any sort of resolve
    • USA
    • www.geocities.jp/doubletrend_zeta/entry.html
I'm having an issue chaining two attack states together. I've done it successfully before when I've made an inbetween
Spoiler, click to toggle visibilty

But when moving from one state directly to another it's not coming out. I've tried both CNS and CMD, but I have to be doing something wrong for it to not come through at all.
Code:
; A
[Statedef 230]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 22
ctrl = 0
velset = 0,0
anim = 230
sprpriority = 2

[State 230, 1]
type = HitDef
trigger1 = Time = 0
attr = S, NA
animtype  = Light
damage    = 17
guardflag = MA
pausetime = 7,12
sparkno = s10005+(random%3)
sparkxy = -20,-65
hitsound   = S390,0
guardsound = 6,0
ground.type = High
ground.slidetime = 10
ground.hittime  = 11
ground.velocity = -4
air.velocity = -2.5,-3.5

[State 230]
type = ChangeState
trigger1 = command = "a"
trigger1 = animelem >= 3
value = 231
ctrl = 1

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

Code:
[State -1, A]
type = ChangeState
value = 230
triggerall = command = "a"
trigger1 = statetype = S
trigger1 = ctrl
;trigger2 = stateno = 240 && Movehit = 1

[State -1, A1]
type = ChangeState
value = 231
triggerall = command = "a"
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = stateno = 230

I could always just code an inbetween as I did before, but as these are basic attacks the tiny amount of time spent in the state could ruin any natural combo flow, so I'd rather not do that.

im buggin out man
Buriki One
Re: chaining two states
#2  December 15, 2014, 08:46:49 am
  • ***
    • USA
    [State -1, A1]
    type = ChangeState
    value = 231
    triggerall = command = "a"
    trigger1 = statetype = S
    trigger1 = ctrl
    trigger1 = stateno = 230

You probably dont have control so you'd need to drop
    trigger1 = ctrl
just do
;    trigger1 = ctrl

----
You can also do a changestate and activate it using a trigger1 = command = "a"
You could put that in the actual state if nothing else works for some reason.
           
Re: chaining two states
#3  December 16, 2014, 12:08:33 am
  • ***
  • Lacking any sort of resolve
    • USA
    • www.geocities.jp/doubletrend_zeta/entry.html
Damn, I knew it was right under my nose the entire time.

Thanks for you help.

im buggin out man
Buriki One