View Single Post
spannclann
Member
 
Join Date: Aug 2018
Location: Texas
Posts: 87

Old March 25th, 2024, 02:13 PM
@Fenris447
I am needing an eval script that checks for the hero's level. If the appropriate level is met then shortbow and damage die are increased to the next highest die.
(i.e. Shortbow to 1d8 and Longbow to 1d10)


I found this level check:
~ Check whether you have at least 18 levels of the Fighter class
@valid = 0
if (#levelcount[Fighter] >= 18) then
@valid = 1
endif

and I know to do this for damage die:
hero.childfound[wShortbow].field[wDieCount].value = 1
hero.childfound[wShortbow].field[wDieSize].value = 8

I assume I need a check to see if the hero has the weapon in question before it applies the larger damage die.
spannclann is offline   #1 Reply With Quote