Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old February 25th, 2020, 10:36 AM
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
But abValue consistently results in zero. I thought it might be a timing issue, so I tried everything from <First/500> to <Render/20000>, but still got the same result.

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/
Bob G is offline   #1 Reply With Quote
TheIronGolem
Senior Member
 
Join Date: Feb 2015
Posts: 676

Old February 26th, 2020, 02:41 PM
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.
TheIronGolem is offline   #2 Reply With Quote
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old February 26th, 2020, 03:01 PM
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/
Bob G is offline   #3 Reply With Quote
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old February 26th, 2020, 08:14 PM
Quote:
Originally Posted by TheIronGolem View Post
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.
IG, abValue3 on cSneakAtt worked perfectly. Thank you.

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   #4 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:31 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.