YesNoOk
avatar

Button Mashing Move Help (Read 154 times)

Started by KBN22, February 09, 2012, 08:12:55 pm
Share this topic:
Button Mashing Move Help
#1  February 09, 2012, 08:12:55 pm
  • ***
  • Heroin-flavored bananas finance revolutions!!!
I've been trying to make a Ren-Hadouken for my Ryu edit,
Which is a button mashing move where you first input your command "Ren-Hadou-Ken"
and then can mash the "X","y",or "Z" command to make up to 5 more helpers appear.

The problem I have is I'm not quite sure how to do that...
I want him to changestate back into his Ren Hadouken State (1090) everytime he fires another Helper
using the x,y,or z command, but AFTER you first input the "Ren-Hadou-Ken" command.

So far, I've only been able to spawn another helper during that state using a var.

Code:
;--------------------------------------
;Ren Hadou-Ken - X ;(CMD CODE)
[State -1, hadouken]
type=changestate
value=1090
triggerall= var(20)
triggerall= var(59)<=0
triggerall= command="Ren-Hadou-Ken_X" || command="Ren-Hadou-Ken_Y" || command="Ren-Hadou-Ken_Z"
triggerall= roundstate=2 && statetype!=A
triggerall= stateno !=420
trigger1= ctrl
trigger2= ((stateno=[1200,2999]) && movecontact) || (stateno = [200,499]) || (stateno = 920) || stateno=52 && (prevstateno=[1000,2999]) && movecontact

;---------------------------------------
[State 1090] ;(STATE CODE)
type = VarSet
trigger1 = command = "x" || command = "y" || command = "z"
v = 30
value = 1 

[State 1090]
type = Helper
trigger1 = animelemtime(5)=1
trigger2 = var(30) && !time
helpertype = normal
name = "Ren Hadou-Ken"
ID = 1091
pos = 80,-66
postype = p1
stateno = 1091
size.xscale=.5
size.yscale=.5
ownpal = 1

Any ideas or suggestions how to make this work, or any other way to implement this move would be greatly appreciated, thanks.
Re: Button Mashing Move Help
#2  February 09, 2012, 09:32:10 pm
  • ***
    • USA
Well I dont see anything that resets var30. So the value will always be 1. You'd need something in statedef -2 to reset the var otherwise it'll fire every time youre in that state. Maybe you could put it in statedef 1091. Once you have it reset
Do something like this

[State 1090]
type = Helper
triggerall = var(30) && !time
trigger1 = animelemtime(5)=1
trigger2 = animelemtime(7)=1
trigger3 = animelemtime(9)=1
trigger4 = animelemtime(11)=1
trigger5 = animelemtime(13)=1