[Ace] Help with Hime's Formula Effects

Howdy!

I'm hoping someone with a little bit of scripting knowledge could help me creating a skill effect using Hime's Formula Effects script.

What I'm hoping to create is a skill that is set up like:
If target has state 10
set_variable[1] = 3
elseif target has state 11
set_variable[1] = 2
else
set_variable[1] = 1

I hope this makes sense. By all means, let me know if you'd like me to try and explain it differently.

Thank you!
I feel like this is the neatest way:
Code:
v[1] = b.state?(10) ? 3 : b.state?(11) ? 2 : 1

but if that doesn't work, try:
Code:
b.state?(10) ? v[1] = 3 : b.state?(11) ? v[1] = 2 : v[1] = 1

If that doesn't work, try replacing the v with $game_variables.
Works like a charm, thanks a bunch! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/ace-help-with-himes-formula-effects.101267/