Saving EX and SP Params to Variables

I need to save things like TAR, and MER to a variable so I can conditional check against them. But there is no native way to do it in the editor. So I assume I need to use a script call.

I saw a post somewhere that listed $gameActors.actor($gameVariables.value(x)).param(n); as how you do the regular params like HP, MP, and AGI. But it doesn't work for the SP and EX ones.

I have...

◆Control Variables:#0073 = Actor ID of the party member #1
◆Control Variables:#0065 Hero 1 Focus = $gameActors.actor($gameVariables.value(73)).xparam(4)

and it returns 0. When the value in my menu for that xparam is 100%. Is there something about the fact it is a percent???
param(n) only works with MHP, MMP, ATK, DEF, MAT, MDF, AGI and LUK.
About Ex and Sp-Params, i guess you can find your answer in my old post HERE
Awesome thanks!

Using your info

$gameActors.actor(actor id).hit

and adding * 100 at the end.

#0065 Hero 1 Focus = $gameActors.actor(actor id).hit * 100

Let me save the percents as whole numbers in variables. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/saving-ex-and-sp-params-to-variables.78164/