Quote:
Phase: PreAttribute Priority: 10000
~ Compare AC, use highest.
field[abValue].value = hero.child[ArmorClass].field[tAC].value
field[abValue2].value = hero.child[SprigganACmech].field[assignedACfield].value
if (field[abValue].value < field[abValue2].value) then
hero.child[ArmorClass].field[tAC].value = field[abValue2].value
endif
|
There are other ways too, but that was the one that came to mind, anything else will require more info on how you are working the mechanic. There is some reference info in the help section of the editor under Reference Information.