0 votes
by (2.9k points)
So I'm trying to print variables in my twine game but each approach has not worked, I have tried using the print macro but it hasn't worked. It may be a problem for Mac users only because it works on windows just fine. Any suggestions?

1 Answer

+1 vote
by (156k points)

Without an example of your existing TwineScript it is difficult to determine why it is not working for you.

The following example demonstrates a number of different methods that can be used to output the contents of story variable, they range from using Naked Variables to the different <<print>> related macros and they all work as expected.

<<set $name to "John Smith">>

Your name is $name.

Your name is <<print $name>>.

Your name is <<= $name>>.

Your name is <<- $name>>.


Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.