Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
This ability adds damage to sneak attack equal to the number of sneak attack dice the rogue currently has. I wrote this:
<Post-Attributes/10000> Code:
~ our value is the same as our sneak attack die count field[abValue].value += hero.childfound[cSneakAtt].field[abValue].value ~ If sneak attack is activated if (hero.child[cSneakAtt].field[abilActive].value <> 0) then foreach pick in hero from BaseWep #extradamage[eachpick,field[abValue].value,field[thingname].text] nexteach endif What have I done wrong, O wise and powerful HL community? 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/ |
#1 |
Senior Member
Join Date: Feb 2015
Posts: 676
|
For what it's worth, Sneak Attack uses abValue3 as a static damage bonus. So for example, with abValue:3, abValue2:6 and abValue3:5, it will display "plus 3d6+5 sneak attack" on weapon damage.
As for timing, do you know how to check the field histories of a pick? If not, here's what you do: 1. Make sure the Enable File Debugging option is turned on in the Develop menu. 2a. Right-click the pick you want to look at (Sneak Attack, in this case) if it's visible on the hero, and choose "Show Debug Field Histories for [thingid]" OR 2b. If it's not something that's visible on the hero, go to Develop->Floating Info Windows -> Show Selection Field Histories, and type the name or thingid of the pick you're looking for. Either way, you'll get a "historical" list of field values, including timing notes for when the values changed. That will help you determine what timing to use for your scripts. |
#2 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Muchas gracias, El Golemo de Ferro. I'll have a look this evening.
How's the USoP files coming? 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/ |
#3 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Quote:
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/ |
|
#4 |
|
|