I want to add 5 or 6 images in a same passage. But every time my hero come to the this passage I want to this images change to another one randomly. How can I do that ?
(Just the images not the text)
Thanks for the reply but I dont quite understand, sorry but Im new at twine and I think this codes not work in sugarcube. When I copy-paste iy on my passage its says:
“Harlowe macros use a different syntax to Twine 1, SugarCube, and Yarn macros.”.
If you guys leave a solution with a example I am very apperice it. Many thanks
The answer to your problem is right in the error message. You’re using Harlowe, not SugarCube.
I’m assuming that you changed the default story format to SugarCube. Changing the default only affects new projects, not existing ones. So what you need to do is go into your existing project and change its story format.
I haven’t used Twine 2 in a while so this may be off. IIRC, in the latest version of Twine 2 you can find it under story or setting → details, something like that. Older versions have it in different locations.
Anyway. Once you change your existing project’s story format to SugarCube, selden’s example should work.