Senior Member
Join Date: May 2016
Posts: 608
|
So I copied a script from a monster that was adding (Humanoid Form Only) to the non-natural weapons and noticed that SRD weapons don't have a livename/sbname on all weapons? Not sure if it's a glitch or intentional but it causes an issue on the statblock where the weapon is listed with just the name " (Humanoid Form Only)."
Is it good practice to call out the base weapon name directly? The script examples are below (both are run in Rendering phase): OLD SCRIPT (doesn't work): Quote:
Quote:
|
||
#1 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
I've had the same issue at times when using '&='. Like you, when I use the method you did it works.
I went with the old adage, if a method works, go with it. Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
This is all based on "timing" your script is running too early and Livename has not been set yet.
In addition I would not do a foreach loop with the amount of CPU it requires to just set a name. Why can't you just set the names when you bootstrap? 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. |
#3 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
I was just commenting on the use of '&='.
I quite agree with ShadowChemosh on this. When bootstrapping I'd go to the fields section of the bootstrapped item. I'd add the field - livename and then the new name. Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
#4 |
Senior Member
Join Date: May 2016
Posts: 608
|
Quote:
Now for the bite attack the same race gets - that livename gets the "(in beast mode only)" added to the end of the livename/sbName and that's done in the bootstrap rather than a script. Last edited by dungeonguru; May 8th, 2017 at 03:55 PM. |
|
#5 |
|
|