Hello again my helpful friends!
I'm trying to show a random picture on the screen. I can make this work by using the either randomiser.
(set: $image to (either: "1", "2", "3"))
(print: ' <img src = "Images/Portraits/'+$image+"LF.png"+'"> ')
The problem is that I'm quickly getting far too many pictures to keep adding them as options with "either".
In short, I'd like to have this work with the random randomiser:
(set: $image to (random: 1, 100))
(print: ' <img src = "Images/Portraits/'+$image+"LF.png"+'"> ')
The problem with this is that it considers the random variable a number, not a string.
I've tried little hacks to get this working but no luck so far:
(set: $image to (random: 1, 100))
(set: $image2 to "$image")
(print: ' <img src = "Images/Portraits/'+$image2+"LF.png"+'"> ')
Many thanks to whomever can make this work!
Comments
You can use the (text: ) macro to convert a number into a string.
Thank you a dozen greyelf, you're amazing!