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?
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 = Varsettrigger1 = command="dragon_punch"var(0) = 40[state -2]type = varaddtrigger1 = var(0) > 0var(0) = -1[state -1, dragon punch]type = changestatevalue = 1000trigger1 = var(0) > 25...I think that works.
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.