Posted by Kazecat
in Assist/Striker Health Values (Started by Kazecat December 05, 2021, 04:49:38 pm
Board: M.U.G.E.N Development Help
Board: M.U.G.E.N Development Help
For int variables, change the value parameter to "Floor(X*((LifeMax+0.0)/Const(data.life)))", where X is the whatever number you want. Example:Code:[State 0, VarSet]
type = VarSet
trigger1 = 1
v = 0
value = Floor(100*((LifeMax+0.0)/Const(data.life)))
This will scale the variable if the Player's max life is higher or lower than their normal maximum life because of the life setting in the options.
If the variable is a float variable, the "Floor" part isn't really needed, like so:Code:[State 0, VarSet]
type = VarSet
trigger1 = 1
fv = 0
value = 100*((LifeMax+0.0)/Const(data.life))
Thank you I'm gonna apply this today and try it out.