0 votes
by (270 points)
closed by
So i have tried to find it out for myself and i hate to ask random dumb questions and i know how to do it in PHP but thats a different ballgame but how do you add extra alphanumeric characters to a variable? here is an example

$player (playername variable) if i do it like this $player's it wont matter it will show it as player's but what if i want to display it like players? how do you "break" it? cause if i type $players twine will start yelling at me that there is no such variable it's not a neccesaty but it is quite anoying cause i have no idea how to work around it
closed with the note: answer works for me thank you!

1 Answer

+2 votes
by (2.4k points)
selected by
 
Best answer

Using the <<print>> macro there with the s after it would do the trick, like this:

<<print $player>>s

 

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.
...