View Single Post
Senior Member
Join Date: May 2016
Posts: 590

Old December 29th, 2017, 05:13 AM
This is a basic script to do this to a magic weapon that has the Bonus set to 1 (as a default). The script only runs if the weapon is equipped and attuned and the hero is a Goliath. (Hint: To find a given race tag, you need to go into the Develop menu -> Floating Info Windows -> Show Hero Tags. If you type IsRace in the debug window you can see what race is applied to a hero.)

~ quit if not equipped
doneif (field[gIsEquip].value = 0)
~ quit if not attuned
doneif (field[gIsAttuned].value = 0)
~ quit if not Goliath
doneif (hero.tagis[IsRace.r5CEEGolia] = 0)

~ if we got past the quit options, add +1 to the weapon bonus
field[Bonus].value += 1
Timing Wise, you can put this post-attribute/10000, which is after attributes are calculated, but before final bonuses are calculated for magic weapons (which if i remember is in final phase).
dungeonguru is offline   #2 Reply With Quote