Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - d20 System (http://forums.wolflair.com/forumdisplay.php?f=46)
-   -   Check highest ability score (http://forums.wolflair.com/showthread.php?t=56634)

Illyahr September 24th, 2016 08:19 AM

Check highest ability score
 
So the ability One with All and Nothing for the Shiba Protector (OA) has its hTotal field = highest attribute modifier. How would I tell the system to check for this?

Sendric September 24th, 2016 03:34 PM

Quote:

Originally Posted by Illyahr (Post 234969)
So the ability One with All and Nothing for the Shiba Protector (OA) has its hTotal field = highest attribute modifier. How would I tell the system to check for this?

Hmm....that's not something I've had to tackle before. I suppose I would just do a series of maximum scripts, as such:

Code:

var max as number
max = maximum(hero.child[aSTR].field[aModBonus].value,hero.child[aDEX].field[aModBonus].value]
max = maximum(max,hero.child[aCON].field[aModBonus].value]
etc...


Illyahr September 24th, 2016 10:11 PM

Ok, thanks. I'll see what I can get to work.


All times are GMT -8. The time now is 10:47 PM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.