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

Old June 5th, 2020, 07:09 AM
I thought I had this figured out, but after a few months I revisited the ability, and realized it wasn't working as I hoped.

It's a custom ability that can be selected multiple times. Each time, it adds +1 dodge bonus to AC when hero is fighting defensively.

I don't receive any error messages, and the bonus adds to AC correctly, but the livename doesn't reflect the correct value after the first copy. It could be a timing issue, but I tried other phases to no avail.
<Post-Attributes 10000>
Code:
     call X1SetFirst
     field[abValue].value += 1
     
     field[livename].text &= field[thingname].text & " +" & field[abValue].value
     hero.childfound[pstFtDefen].field[abValue].value += field[abValue].value

~ if we're not the first copy, get out now
     doneif (tagis[Helper.FirstCopy] <> 1)
     
~ if we're not fighting defensively, get out now
     doneif (hero.childfound[pstFtDefen].field[pIsOn].value = 0)
     hero.childfound[ArmorClass].field[tACDodge].value += field[abValue].value
I have several custom abilities that work similarly, so if the community can assist, you will help me solve several problems. 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   #6 Reply With Quote