Command buffer time issue

Started by Liero, September 02, 2009, 04:57:17 AM

Previous topic - Next topic

Liero

My character's normal command.buffer.time is set to 3, but I need a way to alter it based on the value of a variable.  Here's what I have right now:

command.buffer.time = IfElse(Var(27)=0,3,7)

The problem is that this seems to disable it altogether.  Is there any way to do this?

Rajaa Retired

#1
I don't think you can do that. You could try messing around with a variable: Makie it equal a certain amount when a certain motion is pressed and have it decreases when it is greater than zero, while having the move only trigger when the variable is above a certain value.


Example:

[state -2]
type = Varset
trigger1 = command="dragon_punch"
var(0) = 40

[state -2]
type = varadd
trigger1 = var(0) > 0
var(0) = -1

[state -1, dragon punch]
type = changestate
value = 1000
trigger1 = var(0) > 25
...

I think that works.

Cyanide

You also need to be careful to allow that to continue (or not continue) during hitpauses and normal pauses.

The command settings only take the parameters available, you can't do complex expressions with commands.

You'd need to set up 2 commands with different buffertimes and 2 changestates for specifications on doing them.


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.