Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
Ok, I'm tidying up my .user file for the Unearthed Arcana: Mystic class v2. What I have works, but its a bit kludgy, so I decided to tidy up my scripts with what I now know.
One of the Class Specials adds damage to the weapon damage of the same type as the weapon does. This is there script I am using: Phase: Final Phase, Priority: 10000 Quote:
Quote:
Any ideas what I am doing wrong? Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
||
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
If you can see Text in that field in debug (i.e. NOT final text) then my guess would be timing. Your script is running before a value is put into that field. Try increasing your timing to later.
NOTE: If the value you wish is only in the Final Text part of the field you can NOT get at it with a script. Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#2 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
Bah, humbug. It is only in the Final text section.
Any clues on how I can access the damage type text? I'll be taking a look at your adjustments again tomorrow to see if you've done anythign similar . . . Thx for the reply Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
But you can get around it the same way they are filling the damage final text. Its called "tagnames[]". Code:
var sDice as string sDice = signed(field[actUser].value) & "d10 " & field[usrChosen1].chosen.tagnames[DamageType.?] Now then with tagnames[] if you know you can have multiple tags you need to tell it how to separate the words. Lets say something does Slashing/Piercing damage. Code:
field[usrChosen1].chosen.tagnames[DamageType.?," and "] For way more examples I recommend searching for tagnames[] in the community Pathfinder Repository. Of course to find all such functions the HL Wiki HERE is your best friend. Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#4 |
|
|