If variable is so and so then picture is so and so?
Pretty sure it is.
I thought we could only post the picture on the text.
So there's such a thing as
IF %VARIABLE = 1 THEN
BEGIN
$PAGETEXT := $PICTURE1
END
???????????????????????????????????????????????????????????????????
How do you possibly script pictures?
On-Page Variable Tricks.
%%VARIABLE%=%1%<img src="http://chooseyourstory.com/i/?28466" />%%%%VARIABLE%=%2%<img src="http://chooseyourstory.com/i/?10000" />%%
I see. That's perfect. Thanks.
It'll save me a lot of time.
So, I'm doing something in one of my games which involves pictures that change based on variables. I tried using the script you posted here, but it isn't working? I made sure to substitute 'VARIABLE' and the picture urls with the variables and urls I was trying to use, but all that shows up when I playtest it the image url. Is this a bug? Or am I doing something wrong?
We won't have any idea of how to help you until you post the script you're using.
It's pretty much the same as what BerkaZerka posted, just with my own variable and image urls inserted.
%%NEW%=%1%<img src="http://chooseyourstory.com/i/?24986" />%%%%NEW%=%2%<img src="http://chooseyourstory.com/i/?24987" />%%
Probably has something to do with this issue then:
http://chooseyourstory.com/forums/bugs-and-problems/message/12578
Images are just disappearing for some reason (I tried just putting in an image and it literally disappeared after I saved it).
Dunno how long it will take to fix. Alex is pretty sporadic when it comes to fixing things
Make sure you are putting the script on the page itself and not in a script box.
I am. It still doesn't work. All I get is this:
<img src="http://chooseyourstory.com/i/?24986" /> or <img src="http://chooseyourstory.com/i/?24987" />
... depending on what variable change I trigger.
You are doing it correctly. Something about the way that the new Editor works, now requires that you paste the above format into the Source Side of your Page - as the Rich Text Side actually changes the < & > to < & >. You may even have to paste it in the source side and save it in the source side, as toggling back to text side after entering it might change it again.
^ Just tested this - and yes, it is a bug - the Rich Text Editor removes it if you go back to it for any reason.
Okay, thanks! Putting it in the source side fixed my problem :) Just gonna have to work around the bug now.