I made a small script to pick the best familiar in certain categories. So far, it works great, except for when I want a stasis familiar.
Right now, all I'm looking for are familiars that replenish MP (through the star starfish method). Here's what I have so far:
The problem I'm having is with numeric_modifier. "mp regen", "mp regen min", and "mp regen max" are not associated with star starfish like familiars. Is there a special keyword for those types of familiars? Or do I have to hard code something?
Right now, all I'm looking for are familiars that replenish MP (through the star starfish method). Here's what I have so far:
PHP:
familiar stasisFam()
{
if ( to_boolean(vars["is_100_run"]) )
return my_familiar() ;
float [familiar] myFamiliars ;
float highestBoost ;
familiar best ;
foreach familiar in $familiars[]
{
if (have_familiar(familiar) )
{
myFamiliars[familiar] = numeric_modifier(familiar , "mp regen min" , familiar_weight(familiar) , familiar_equipped_equipment(familiar) ;
}
}
//initialize
best = my_familiar() ;
highestBoost = numeric_modifier( my_familiar() , "mp regen min" , familiar_weight(my_familiar()) , familiar_equipped_equipment( my_familiar() ) ) ;
foreach familiar in myFamiliars
{
if (myFamiliars[familiar] > highestBoost)
{
best = familiar ;
highestBoost = myFamiliars[familiar] ;
}
}
//print (best) ;
return best ;
}
The problem I'm having is with numeric_modifier. "mp regen", "mp regen min", and "mp regen max" are not associated with star starfish like familiars. Is there a special keyword for those types of familiars? Or do I have to hard code something?