Command input problem

Started by Odb718, July 14, 2015, 04:54:59 AM

Previous topic - Next topic

Odb718

I want to make a command that the player holds down for at least a third of a second, then can continue holding down, then press all 3 kicks.

I've tried a number of ways but cant figure out how to get it to go.

I've tried making
[Command]
name = "Move"
command = ~20$D, a+b+c       <<<<You have to hold, let go, then press the kicks
[Command]
name = "Move"
command = ~20/$D, a+b+c       <<<<breaks it


[Command]
name = "MoveA1"
command = /$D       
[Command]
name = "MoveA2"
command = ~20$D       
[Command]
name = "MoveB"
command =  a+b+c     

MoveA1 + MoveB will activate. MoveA2 + MoveB doesnt work.

I basically want this to work like Guile's Flash Kick, but without having to let go of down. MoveA1+MoveB is almost what I want, but it doesnt have a minimum time length.


vVv Gouken718 vVv SabreTooth718 vVv


Felkazz

Well, you can use a var on state -2...

[State -2, HoldDown Var]
Type = VarAdd
Trigger1 = Command = "holddown"
V = 0
Value = 1

[State -2, HoldDown Var Reset]
Type = VarSet
Trigger1 = Command != "holddown"
V = 0
Value = 0

Now you can use the var(0) together with the "a+b+c" command as trigger.

Trigger1 = Var(0) >= 20
Trigger1 = Command = "a+b+c

I don't know if this is the best way to do it, or if it is possible to do what you want only using commands, but this should work ^^

Noctis

Do you NEED it to be done through commands? Why not make it easier on yourself?
You want to press a+b+c while holding down after 20 ticks?

triggerall=stateno=11&&time>=20
triggerall=ifelse(stateno=11&&time>=20&&command="holddown",command="a"&&command="b"&&command="c",command="holddown")

(Youtube) (WIP) (Mediafire) (New Anime Shop) My Manga Reviews! Personal favorite Patreon! Check her out!

"There is nothing either good or bad, but thinking makes it so."

Felkazz

If you're not planning on being able to use this move on a combo, Noctis answer is better than mine, but if you want it to combo with other moves, than Noctis won't work.

Noctis

He wants it in a combo?

type=varadd
trigger1=command="holddown"
var(0)=1

type=varset
trigger1=movetype=H
trigger2=var(0)>=20&&command="MoveB"
trigger3=command!="holddown"
var(0)=0

triggerall=var(0)>=20
triggerall=ifelse(var(0)>=20&&command="holddown",command="MoveB",command="holddown")

(Youtube) (WIP) (Mediafire) (New Anime Shop) My Manga Reviews! Personal favorite Patreon! Check her out!

"There is nothing either good or bad, but thinking makes it so."

Odb718

yeah I'd like to be able to jump in, start holding down while airborne, then go into the move when I hit the ground.
I'm just trying to come up with a system for my Mai718's Flying Squire move. Nothing seems to fit. I'll have to try the variable method.
I find it kinda dumb Mugen wouldnt have this built in. Something, like ~20/D+a+b+c, should be possible.
vVv Gouken718 vVv SabreTooth718 vVv


Noctis

The second piece of coding I posted should work just fine. I agree it's rather annoying though that a lot of simple things need to be done through vars, but that's how it is. On the plus side, just about anything can be done through vars.

(Youtube) (WIP) (Mediafire) (New Anime Shop) My Manga Reviews! Personal favorite Patreon! Check her out!

"There is nothing either good or bad, but thinking makes it so."