; Opponent Starting Life Variable.
[State -2, VarSet]
type = VarSet
trigger1 = stateno = 191
var(20) = enemy,const(data.life)
;Debuging
[State -2, Display To Debug]
type = DisplayToClipboard
trigger1 = 1
text = "\nThe Opponent's total health is %d" ; Replace *** with a state name. %d points to the params line below.
params = var(30);put a var or fvar here.
and in the Variables.st file I have [Statedef -2]
[State -2]
type = VarSet
trigger1 = stateno = 191
var(30) = enemy,const(data.life)
If I call var(20) in the DisplayToClipboard state then the correct number is shown. (1000 in this case.) But if I call var(30) then 0 is displayed. [StateDef 9999]
type = S ; SCA
movetype = A ; AIHU
physics = S ; SCANU
; Light, Medium, and Hard Punche's And Kick's Variable. No mater what commands where input before, the value
; will change according to which punch or kick is used.
[State 9999]
type = VarSet
trigger1 = 1
var(30) = ifelse(Command = "x" || Command = "a",1,ifelse(Command = "y" || Command = "b",2,ifelse(Command = "z" || Command = "c",3,var(10))))
persistent = 1
and tried to call the var(30) from a special move in the Specials.st file. It did not work, but if I use the same variable only in a -2 state in the .cns file, then it does work.