Senior Member
Join Date: Jul 2009
Location: Saratoga, CA
Posts: 257
|
I am getting the following error with the files I am currently working with and I can't figure out what's wrong with the script.
Quote:
Code:
<thing id="raKPInfDer" name="Infiltrator" description="The derro gains a +2 racial bonus on Disguise checks to pose as a diseased dwarf, gnome, or human child and, when doing so, ignores the check penalties for disguising oneself as a different race and age category. This racial trait replaces the ghost sound spell-like ability." compset="AltRaceTrt" uniqueness="unique"> <comment>TO DO: Not implemented yet</comment> <usesource source="bKPAdvRace"/> <tag group="RaReplace" tag="raKPDeGhSn"/> <tag group="AllowRCust" tag="rKPLDerARC"/> <tag group="Helper" tag="NoPathSoc"/> <tag group="SpecType" tag="Skill"/> <bootstrap thing="raDisguise"> <autotag group="Value" tag="2"/> </bootstrap> <eval phase="PreLevel" priority="10000" index="2">~ Our value defaults to +2 field[abValue].value += 2</eval> <eval phase="Render" priority="1000">~ If we're disabled, do nothing doneif (tagis[Helper.SpcDisable] <> 0) var Text as string ~ Build Text String once Text = signed(field[abValue].value) & “ bonus on Disguise checks to pose as a diseased dwarf, gnome, or human child. Ignore check penalty to disguise self as different race or age, when doing so.” ~ Set situational text onto Disguise. #situational[hero.childfound[skDisguise],Text,field[thingname].text]</eval> </thing> |
|
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
I'm suspicious of the directional quotation marks on that line - see if using " works. Or maybe just convert the directional quotation marks to a normal ".
Either that or convert the whole eval script to a <![CDATA[ ]]> block, and go back to using normal &, <, >, etc. signs, instead of the weird versions you have to use if it's not set as <![CDATA[ |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
This is the line it don't like:
Code:
Text = signed(field[abValue].value) & “ bonus on Disguise checks to pose as a diseased dwarf, gnome, or human child. Ignore check penalty to disguise self as different race or age, when doing so.” try this instead pasting in from the editor not into the XML: Code:
Text = signed(field[abValue].value) & " bonus on Disguise checks to pose as a diseased dwarf, gnome, or human child. Ignore check penalty to disguise self as different race or age, when doing so." Code:
~ If we're disabled, do nothing doneif (tagis[Helper.SpcDisable] = 1) ~ Set situational text onto Disguise. #situational[hero.childfound[skDisguise], signed(field[abValue].value) & " bonus on Disguise checks to pose as a diseased dwarf, gnome, or human child. Ignore check penalty to disguise self as different race or age, when doing so." ,field[thingname].text] 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: Jul 2009
Location: Saratoga, CA
Posts: 257
|
I hadn't considered that the text got polluted with a copy paste... I'll tweak the quoting. Thanks for the other advice as well. I'll give it a try.
Last edited by Unseelie; September 18th, 2017 at 10:44 PM. |
#4 |
|
|