View Single Post
Bob G
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 221

Old July 11th, 2020, 10:22 PM
Hi Hero Lab heroes,

I have this script, which is working well:
<Final 27000>
~ abValue equal to Sleight of Hand
     field[abValue].value += hero.childfound[skSleight].field[skTotal].value
~abValue2 stores CMB bonus
     field[abValue2].value += hero.childfound[Maneuver].field[tCMB].value
And now, I want to apply the results of the script to the hero's CMB for the Disarm combat maneuver. So I tried this:
~ change disarm bonus to equal Slight of Hand total bonus
if (field[abValue2].value < field[abValue].value) then

hero.childfound[manDisarm].field[manCMB].value = field[abValue].value

But the adjusted CMB for Disarm doesn't appear in the UI. Can anyone tell me why? I believe it is a timing issue, but don't know what phase I need to select for the second bit of script.

Projects: Legendary Rogue (Legendary Games) 97.9%, Assassin (Interjection Games) 88%, Eldritch Godling (Super Genius Games) 74.5%, Mighty Godling (Super Genius Games) 44.3%, Adept Godling (Super Genius Games) 43.4%, Clever Godling (Super Genius Games) 41.2%, Fortunate (rebuild of Luckbringer, Rite Publishing) 34.4%, Legendary Cavalier (Legendary Games) 25.6%

Message me for a list of completed projects.
Visit my blog!
Bob G is offline   #1 Reply With Quote