View Single Post
Minous
Senior Member
 
Join Date: May 2015
Posts: 830

Old October 3rd, 2021, 07:36 AM
with only three attributes its fairly easy. Set a max_casting_mod var to 0, and a second one to track the associated attr (max_attr). hero.child[aCHA].field[aModBonus].value is where the attr mod is stored. Then go thru the three (aCHA,aINT,aWIS) and then set check if that value is bigger than max_casting_mod, if it is update max_casting_mod to whatever the bonus is, and then set something like max_attr = "aCHA" or whatever. Then at the bottom compare the value of max_attr to the three stats in an if statement, and push the corresponding StandardDC tag
Minous is offline   #2 Reply With Quote