Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Is this possible?

10 years ago

If variable is so and so then picture is so and so?

Is this possible?

10 years ago

Pretty sure it is.

Is this possible?

10 years ago

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?

Is this possible?

10 years ago

On-Page Variable Tricks.

%%VARIABLE%=%1%<img src="http://chooseyourstory.com/i/?28466" />%%%%VARIABLE%=%2%<img src="http://chooseyourstory.com/i/?10000" />%%

 

 

Is this possible?

10 years ago

I see. That's perfect. Thanks.

It'll save me a lot of time.

Is this possible?

9 years ago

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?

Is this possible?

9 years ago

We won't have any idea of how to help you until you post the script you're using.

Is this possible?

9 years ago

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" />%%

Is this possible?

9 years ago

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

Is this possible?

9 years ago

Make sure you are putting the script on the page itself and not in a script box.

Is this possible?

9 years ago

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.

Is this possible?

9 years ago

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 &lt; & &gt. 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.

Is this possible?

9 years ago

^ Just tested this - and yes, it is a bug - the Rich Text Editor removes it if you go back to it for any reason.

Is this possible?

9 years ago

Okay, thanks! Putting it in the source side fixed my problem :) Just gonna have to work around the bug now.