Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Using Scripting to Display a Variable

11 years ago

In my storygame, I'm trying to make it so that instead of showing a variable's integer value (0,1,2,3,n) I want it to show a string value (yes, no,etc)
Is there a way to do this using scripting?

I know that if you declare a variable, you can do a min and max value and display it by doing %%VARIABLE%% but can you do the same thing using a string value instead of an integer?

Thanks!

Using Scripting to Display a Variable

11 years ago

%%VARIABLE%=%1%Yes%% %%VARIABLE%=%0%No%%

Essentially a inside the page if statement.

Using Scripting to Display a Variable

11 years ago

Do you mind elaborating on that a bit more. I'm sorry; still pretty new to scripting.

Using Scripting to Display a Variable

11 years ago

Using Scripting to Display a Variable

11 years ago

Short answer is no, you can only have integer values.

Look at Berka's post for the "Yes, but..." long answer.