WatchNon-threaded

Forums » Advanced Editor Forum » Read Thread

Talk about it. Ask for help on it. Compliment it.

Is there a way to use ranges on conditional text?

4 months ago

Okay, so I want a body temperature system in my game and I want these to appear.

%%TEMP%<%35%Danger!%%

%%TEMP%>%40%Danger!%%

My problem is that I would like SAFE to appear if the body temperature is within that range.

Will I need to put text down for each individual variable or can you set ranges with conditional text?

Any help would be appreciated. 

Is there a way to use ranges on conditional text?

4 months ago
Not with in-line text. You could do this if you were adding text via page scripting, but for this in-line method it only has a single check.

Is there a way to use ranges on conditional text?

4 months ago

Right gotcha. Thanks for letting me know. I'm gonna have to brush up on my page scripting it seems. 

Is there a way to use ranges on conditional text?

4 months ago
I find the PAGETEXT variable quite useful for something like this.

Is there a way to use ranges on conditional text?

4 months ago
You can, but it just requires some copy paste and then editing the values.

%%TEMP%<%36%Danger!%%
%%TEMP%=%36%OK%%
%%TEMP%=%37%OK%%
%%TEMP%=%38%OK%%
%%TEMP%=%39%OK%%
%%TEMP%=%40%OK%%
%%TEMP%>%40%Danger!%%