YesNoOk
avatar

Command buffer time issue (Read 605 times)

Started by Liero, September 02, 2009, 04:57:17 am
Share this topic:
Command buffer time issue
#1  September 02, 2009, 04:57:17 am
  • **
    • http://rumblepk.tumblr.com/
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?
Re: Command buffer time issue
#2  September 02, 2009, 05:27:37 am
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/

  • Online
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.
Last Edit: September 02, 2009, 05:32:30 am by Girl
Re: Command buffer time issue
#3  September 02, 2009, 06:34:39 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/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.