NOTE: Material in this tutorial does NOT work with Twine 2's default format, Harlowe.
Scripts allow you to add new features to your Twine game. You can find these scripts posted on blogs and in Twine forums. For example, Leon Arnott has created many scripts and has posted them to his blog, Glorious Trainwrecks.
//changes the background image
handler: function (place, macroName, params, parser)
document.body.style.backgroundImage = 'url('+params+')';
After adding that, you can use the macro on any page in which you would like to change the background image. Be sure to include the URL for the image. Like this:
Finally, you might want to include some CSS like this:
Here is a DEMO that uses my setback macro.
This is part of a larger "How To" guide, click here for my full How To Use Twine guide.