tmedwards / sugarcube-2

SugarCube is a free (gratis and libre) story format for Twine/Twee.
https://www.motoslave.net/sugarcube/2/
BSD 2-Clause "Simplified" License
177 stars 41 forks source link

If you incorrectly quote a variable in a link/button macro, the error message is confusing. #52

Closed BawdyInkSlinger closed 4 years ago

BawdyInkSlinger commented 4 years ago

Here's a gif of the problem: https://cdn.discordapp.com/attachments/389868418855075840/722589854407590030/gif.gif

my mistake was quoting the variable in this button: <<button "Continue" "$exploration_back_passage">><</button>> When I clicked on the button, it looks for passage named $exploration_back_passage which didn't exist. The problem is, the error message says it's looking for a passage named Test Scene With No Links which does exist.

This error message was confusing. If it said it was looking for a passage named $exploration_back_passage, I would've immediately realized my mistake.