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
Unseelie
Senior Member
 
Join Date: Jul 2009
Location: Saratoga, CA
Posts: 257

Old September 15th, 2017, 01:43 PM
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:
Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'eval' script for Thing 'raKPInfDer' (Eval Script '#1') on line 6
-> Error in right-side expression of assignment
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&apos;re disabled, do nothing
doneif (tagis[Helper.SpcDisable] &lt;&gt; 0)

var Text as string
~ Build Text String once
Text = signed(field[abValue].value) &amp; “ 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>
Unseelie is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old September 15th, 2017, 01:57 PM
I'm suspicious of the directional quotation marks on that line - see if using &quot; 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[
Mathias is offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old September 15th, 2017, 01:57 PM
This is the line it don't like:
Code:
Text = signed(field[abValue].value) &amp; “ 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.”
Those quotes to me look like something that was pasted in from a word document. They don't look like standard quotes.

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."
You can also just shorten the code by doing this:
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.
ShadowChemosh is offline   #3 Reply With Quote
Unseelie
Senior Member
 
Join Date: Jul 2009
Location: Saratoga, CA
Posts: 257

Old September 18th, 2017, 10:39 PM
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.
Unseelie 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 11: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.