|
Junior Member
Join Date: Apr 2012
Posts: 26
|
I'm trying to figure out how to write a situational modifier to AC for the Sylph racial ability "Breeze Kissed" so I can see the benefit on the standard character sheet. Is such a thing possible? The standard ability just offers the activated power.
|
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Use the situational macro:
Code:
#situational[hero.child[ArmorClass],"Situational Text",field[name].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. |
#2 |
Junior Member
Join Date: Apr 2012
Posts: 26
|
Thank you very much! That did the trick!
|
#3 |
Junior Member
Join Date: Oct 2018
Posts: 7
|
I'm trying to modify the situational I found in the helm of comprehend languages and read magic to affect a different skill, specifically knowledge planes.
I took the original: #situational[hero.childfound[skLinguist],”+5 Competence bonus to understand messages written in incomplete, archaic, or exotic forms",field[thingname].text] and ONLY modified the skill to skKnowPlan so it looks like this: #situational[hero.childfound[skKnowPlan],”+5 Competence bonus to understand messages written in incomplete, archaic, or exotic forms",field[thingname].text] and I got the error attached in the screenshot. I get the same error even when I change the script to look exactly like it did before. I assume there's some syntax I'm screwing up. Can someone help? |
#4 |
Senior Member
Join Date: Mar 2013
Location: Melbourne, Australia
Posts: 1,103
|
This may or may not help... the pair of " that you have in both those statements are not the same. The editor may not be recognizing the first one.
Current RPG's: Pathfinder (GM), Pathfinder (Player), Gamma World (GM, Pathfinder homebrew). HeroLab: 3.5 & Pathfinder. HL User Files for PF: Greyhawk Setting, Gamma World (WIP). DM and player of D&D since 1980. |
#5 |
Junior Member
Join Date: Oct 2018
Posts: 7
|
Hi Dami,
Thanks for the response. I just re-entered the quotes, and get the same error. I'm guessing the change is an artifact of my copy and paste. This is really tricky to me. |
#6 |
Senior Member
Join Date: Sep 2015
Posts: 435
|
Quote:
Copy/paste the line of text into Notepad. That will remove the funky double quotes (in your case, it's the first double quote on each line). Then copy/paste from Notepad back into HeroLab. It looks like you used a word processor to create that text and the word processor swapped out the normal double quote (ASCII code 0x22) with one of the Unicode variants (like U+201C). This is a "feature" of word processors and it's a problem when a programming language expects a particular character but the word processor has replaced it with one that it thinks is "better". |
|
#7 |
Junior Member
Join Date: Oct 2018
Posts: 7
|
Another update. I can change other fields in the macro without generating this error, the text for example.
I also get the same error whether I put a valid or invalid skill in the field as well. |
#8 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
I just want to eliminate another possibility. Could you please copy the entire script, so that we can verify that the quoted line is line 3, where the error message says the error is? I know I've spent 5 or 10 minutes fixing the wrong line a time or two.
|
#9 |
Junior Member
Join Date: Oct 2018
Posts: 7
|
Hi Mathias, here you go and thanks:
doneif (field[gIsEquip].value = 0) #situational[hero.childfound[skKnowPlan],”+5 Competence bonus to understand messages written in incomplete, archaic, or exotic forms",field[thingname].text] The before was: doneif (field[gIsEquip].value = 0) #situational[hero.childfound[skLinguist],"+5 Competence bonus to understand messages written in incomplete, archaic, or exotic forms",field[thingname].text] |
#10 |
|
|