Multiplying a variable doesn't work

Started by DR119, December 25, 2017, 03:12:55 AM

Previous topic - Next topic

DR119

I want to multiply a var by 2 if winperfect is active, but strangely it doesn't work
I tried this:
[State -2]
type = VarSet
trigger1 = WinPerfect
var(1) = var(1) * 2

I also tried this:
[State -2]
type = VarAdd
trigger1 = WinPerfect
var(1) = var(1)

Which changes have to be made?

Cyanide

When is var 1 set? All vars start at 0. 0 x 2 is still 0. Needs a value at some point and var 1 = var 1 is just 0 again


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.

Odb718

Remember if you're setting a variable for the next round to set it up properly at the top of the CNS.
vVv Gouken718 vVv SabreTooth718 vVv