Member
Join Date: Nov 2010
Posts: 70
|
Is there a way to get the final damage string from a particular weapon, so as to include it as part of the livename of another special? I tried to take a look at Constrict, as it would usually have similar function, but it seems that there are multiple versions of that with the values entered by hand.
|
#1 |
Member
Join Date: Nov 2010
Posts: 70
|
Ok, since there was no response, I'll try again.
Code:
var damage as string damage = hero.childfound[wBite].field[wDamage].value Looking at the Pick Fields for the bite, the wDamage field has a value of 7 and a final of 2d6+6. Is it at all possible for me to pick up that Final value somehow? |
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
No - the text version isn't generated until after all scripts are finished running, so you can't access it with another script.
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
He will have all the information he would just have to put it together. In example the 2d6 weapon would have a tag of "wMain.2d6_7" and you can easily strip off the _7 part of the string. Then you can get the final value of +6 bonus to damage from the weapon. Sorry I forget the field name or names as you may have to do some addition. So all of this would want to be done VERY late in the timing to make sure all the other scripts have run. Then it would be just a case of putting the two pieces together into "2d6+6" and putting that as the livename of the other Thing. 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 |
|
|