Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

How do I correctly include SugarCube2.x Javascript Macros in Twee2?

$
0
0
So I'm trying to convert the game I've been making in Twine2/SugarCube2.6.1 into Twee2 0.4.2 format and compile with Sugarcube 2.6.1. I figured out how to correctly install and compile with the 2.x Sugarcube format, and my game is mostly working correctly. I just have one issue...

I want to use Leon's combined replace link macro set for <<insertlink>> and <<replacelink>>, but whenever I compile using Twee2 and try to open my .html file, I get the following error:

"Error[tw-user-script-0]: Unexpected token &."

If I cut out the javascript related to the replace link macro set from my [script] passage, I have no errors or warnings except for my <<insertlink>> tags failing (obviously, since the code to run them isn't there).

Anyone have some ideas on how to make the macros play nice with the Twee2 generated file?

Viewing all articles
Browse latest Browse all 1844

Trending Articles