• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Situational Modifier to AC?

pholtus

Active member
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.
 
#situational breaking

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?
 

Attachments

  • Screen Shot 2018-10-03 at 1.30.01 PM.png
    Screen Shot 2018-10-03 at 1.30.01 PM.png
    377.9 KB · Views: 11
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.
 
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.
 
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.
I don't know how you entered them the first way, but doing the same thing twice (the same way) isn't going to correct anything. ;)

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".
 
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.
 
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.
 
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]
 
Ok, thanks - so that's not the issue, and it does appear to be the variant quote character that's the problem. In the editor, can you just delete and re-type that character? Or, if you're editing this in another program and not the editor, can you do a search-and-replace, swapping the quote character that's at the beginning of that section with the character from the end, which looks correct?
 
Hi Matthias,

It was the quotes. I'm on a mac, and when I type by hand into the editor, it seems to autocorrect. I was able to get around this by using TextWrangler, a Mac text editor. Thanks much
 
#situational[hero.child[ArmorClass],"Situational Text",field[name].text]

Would that also be valid in 5e? I've tried it and I don't seem to be able to get the situational text to show up.
 
Back
Top