How do you check your mp regen from effects?

nworbetan

Member
I'd like my between battle script to be aware of my total mp regen, and numeric_modifier(item, "mp_regen_max") works great. I'd also use numeric_modifier(effect, "mp_regen_max"), but I haven't been able to figure out how to get a list of my active effects to iterate through.

Honestly though, I'm actually hoping that I'm going about this all wrong, and that there's a simpler way to get this one stat. It feels like checking every equipment slot and every effect separately and summing them is a little excessive.
 

Bale

Minion
PHP:
foreach e in $effects[]
   if(have_effect(e) > 0 &&  numeric_modifier(e, "mp regen max") > 0)
      print(e);

That's the only way I know to check each effect you possess. For items there is get_inventory(), but I don't believe there is a counterpart for effects.
 

slyz

Developer
Simply doing
PHP:
numeric_modifier( "mp regen max" )
will give you your total current Mp Regen max.
 

Bale

Minion
Oh that was what you wanted? Heh. I thought you were trying to figure out something about managing your effects.
 

nworbetan

Member
Nah, just trying to make sure I burn more mp summoning brickos when I have a starfish or cocobo type familiar, and use a more conservative bricko summoning threshold otherwise.
 
Top