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

Old April 18th, 2021, 07:29 PM
Hi folks,

Writing a script for this ability: "Grants a bonus on two of the following skills of the rogue’s choice: Fly, Handle Animal, Profession (driver), Profession
(sailor), or Ride."

I've got the custom expression choosing the correct skills. Now I want to apply a +2 competence bonus to the chosen skills.
<post-attributes 10000>
Code:
hero.childfound[usrChosen1].field[BonComp].value += 2
hero.childfound[usrChosen2].field[BonComp].value += 2
That produces a syntax error. So what's the correct command to take the user's selections and apply bonuses to them?

Thanks as always!

Projects: Legendary Rogue (Legendary Games) 97.9%, Assassin (Interjection Games) 88%, Fortunate (rebuild of Luckbringer, Rite Publishing) 87.2%, Adept Godling (Super Genius Games) 73.9%, Eldritch Godling (Super Genius Games) 72.9%, Mighty Godling (Super Genius Games) 44.3%, Clever Godling (Super Genius Games) 41.2%, Legendary Cavalier (Legendary Games) 30.9%

Message me for a list of completed projects.
Visit my blog! https://gauntletsofblogrepower.blogspot.com/
Bob G is offline   #1 Reply With Quote