Button Mashing problem?

Started by Fighting Toys Freak, March 14, 2012, 11:50:59 PM

Previous topic - Next topic

Fighting Toys Freak


;Button Mashing
[Statedef 915]
anim = 9741
sprpriority = 3

[State 915, -2]
type = Null
triggerall = !time
trigger1 = var(2):=0
ignorehitpause =1

[State 915, -1]
type = VarSet
trigger1 = !time
v = 4
value = 0
ignorehitpause=1

[State 915, -1a]
type = VarAdd
trigger1 = var(4)=0
v = 4
value = (1+random%6)

[State 915, 0]
type = Explod
triggerall = (var(4)=1)
trigger1 = NumExplod(10)=1
anim = 8003
ID = 10
pos = 0,-(ScreenPos Y/2)
postype = p1  ;p2,front,back,left,right
removetime =(ifelse((command="a"),2,12))
supermovetime = parent,stateno=915
scale = 1,ifelse(command="a",.5,1)
ontop = 1
ownpal = 1
ignorehitpause = 1

[State 915, 1]
type = Explod
triggerall = (var(4)=2)
trigger1 = NumExplod(11)=1
anim = 8004
ID = 11
pos = 0,-(ScreenPos Y/2)
postype = p1  ;p2,front,back,left,right
removetime =(ifelse((command="b"),2,12))
supermovetime = parent,stateno=709
scale = 1,ifelse(command="b",.5,1)
ontop = 1
ownpal = 1
ignorehitpause = 1

[State 915, 2]
type = Explod
triggerall = (var(4)=3)
trigger1 = NumExplod(12)=1
anim = 8005
ID = 12
pos = 0,-(ScreenPos Y/2)
postype = p1  ;p2,front,back,left,right
removetime =(ifelse((command="c"),2,12))
supermovetime = parent,stateno=709
scale = 1,ifelse(command="c",.5,1)
ontop = 1
ownpal = 1
ignorehitpause = 1

[State 915, 3]
type = Explod
triggerall = (var(4)=4)
trigger1 = NumExplod(13)=1
anim = 8006
ID = 13
pos = 0,-(ScreenPos Y/2)
postype = p1  ;p2,front,back,left,right
removetime =(ifelse((command="x"),2,12))
supermovetime = parent,stateno=709
scale = 1,ifelse(command="x",.5,1)
ontop = 1
ownpal = 1
ignorehitpause = 1

[State 915, 4]
type = Explod
triggerall = (var(4)=5)
trigger1 = NumExplod(14)=1
anim = 8007
ID = 14
pos = 0,-(ScreenPos Y/2)
postype = p1  ;p2,front,back,left,right
removetime =(ifelse((command="y"),2,12))
supermovetime = parent,stateno=709
scale = 1,ifelse(command="y",.5,1)
ontop = 1
ownpal = 1
ignorehitpause = 1

[State 915, 5]
type = Explod
triggerall = (var(4)=6)
trigger1 = NumExplod(15)=1
anim = 8008
ID = 15
pos = 0,-(ScreenPos Y/2)
postype = p1  ;p2,front,back,left,right
removetime =(ifelse((command="z"),2,12))
supermovetime = parent,stateno=709
scale = 1,ifelse(command="z",.5,1)
ontop = 1
ownpal = 1
ignorehitpause = 1

[State 915, 6]
type = Explod
triggerall = (var(4)=7)
trigger1 = NumExplod(16)=1
anim = 8009
ID = 16
pos = 0,-(ScreenPos Y/2)
postype = p1  ;p2,front,back,left,right
removetime =(ifelse((command="s"),2,12))
supermovetime = parent,stateno=709
scale = 1,ifelse(command="s",.5,1)
ontop = 1
ownpal = 1
ignorehitpause = 1

[State 915, 7]
type = PlaySnd
triggerall =(var(4)=1)
trigger1 =command="a"
value = S4,1
volume = 20
channel = -1
ignorehitpause = 1

[State 915, 7b]
type = PlaySnd
triggerall =(var(4)=2)
trigger1 =command="b"
value = S4,1
volume = 20
channel = -1
ignorehitpause = 1

[State 915, 7c]
type = PlaySnd
triggerall =(var(4)=3)
trigger1 =command="c"
value = S4,1
volume = 20
channel = -1
ignorehitpause = 1

[State 915, 7x]
type = PlaySnd
triggerall =(var(4)=4)
trigger1 =command="x"
value = S4,1
volume = 20
channel = -1
ignorehitpause = 1

[State 915, 7y]
type = PlaySnd
triggerall =(var(4)=5)
trigger1 =command="y"
value = S4,1
volume = 20
channel = -1
ignorehitpause = 1

[State 915, 7z]
type = PlaySnd
triggerall =(var(4)=6)
trigger1 =command="z"
value = S4,1
volume = 20
channel = -1
ignorehitpause = 1

[State 915, 7s]
type = PlaySnd
triggerall =(var(4)=7)
trigger1 =command="s"
value = S4,1
volume = 20
channel = -1
ignorehitpause = 1

[State 915, 8a]
type = VarAdd
triggerall =(var(4)=1)
trigger1 =command="a"
v = 2
value = 1
ignorehitpause = 1

[State 915, 8b]
type = VarAdd
triggerall =(var(4)=2)
trigger1 =command="b"
v = 2
value = 1
ignorehitpause = 1

[State 915, 9c]
type = VarAdd
triggerall =(var(4)=3)
trigger1 =command="c"
v = 2
value = 1
ignorehitpause = 1

[State 915, 8x]
type = VarAdd
triggerall =(var(4)=4)
trigger1 =command="x"
v = 2
value = 1
ignorehitpause = 1

[State 915, 8y]
type = VarAdd
triggerall =(var(4)=5)
trigger1 =command="y"
v = 2
value = 1
ignorehitpause = 1

[State 915, 8]
type = VarAdd
triggerall =(var(4)=6)
trigger1 =command="z"
v = 2
value = 1
ignorehitpause = 1

[State 915, 8s]
type = VarAdd
triggerall =(var(4)=7)
trigger1 =command="s"
v = 2
value = 1
ignorehitpause = 1

[State 915, 9]
type = DestroySelf
trigger1 = time >= 168
ignorehitpause =1

[State 915, 10]
type = ParentVarSet
trigger1 = var(2)>=168
v = 3
value = 1
ignorehitpause = 1

[State 915, 11]
type = AllPalFX
triggerall = time >= 168
trigger1 = time = [168,192]
time = 1
mul = 256-time*4,256-time*4,256-time*4
ignorehitpause = 1
persistent = 0
;-------------------------------------------------------------------------------

With this helper code, it does not appear; in terms of exploding effects. Why is this not possible?

Cyanide

You didn't write that, you just copy pasted it.

I'm not going through looking for what each variable does or what the attack is meant to do.

I very very strongly recommend you code it yourself doing it in bits so you know exactly what the code does.


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.

Fighting Toys Freak

No I didn't! I made this code! Is just that I am using to choose a random variable to pick an explode. Then pressing the button. When press the button, it increases the variable 2 by 1 by its actual explode number. When variable 2 reaching a certain number, it enables the parent state number. But the explode never appears and I sure I double checked on the calling helper command. What can I do to solve this?

Odb718

Should

[State 915, 6]
type = Explod
triggerall = (var(4)=7)
trigger1 = NumExplod(16)=1
anim = 8009
ID = 16

be like this? I mean if explode 16 is on the screen you'd be making a second one, right? Dont you want it to make the explode if there isnt explode 16 on the screen?
vVv Gouken718 vVv SabreTooth718 vVv


Rajaa Retired

Yep, that's the only problem I see that would cause an explod not to spawn. Change the 1 into a 0 or use the logical compliment operator.