Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

I am so confuse...

11 years ago

Variables that I haven't yet declared but that I've put in the link script is showing up in my story game.

For example:

I haven't made the variable %V1 in my variables section yet, but when I put the code %V1 := %HORSE1 on my link script, and it's showing up in my story game as an actual number when I use it as a on page variable trick. 

 

I am so confuse...

11 years ago

...that sound more like a feature than a bug.

I am so confuse...

11 years ago

This is neither in the feature section, nor the bug section. 

I am so confuse...

11 years ago

This is a good thing haha!

Scripting trumps the Graphic User Interface. So you can Script any number of Variables you want, Outside of the Variables page in the Editor. The ones in the Editor are a good way to keep track of which ones you actually have in the game, but things like dice rolls and such, you can just Script in and forget.

I am so confuse...

11 years ago

So basically, you can script any variables without declaring them first? It doesn't work for some, somehow.

I am so confuse...

11 years ago

Yes, though you are still limited to the 10 Characters or less. Not sure which ones wouldn't work? I've never encountered any problems - could you provide more information on what you are seeing/mean?

I am so confuse...

11 years ago

Never mind, it works, but it doesn't work at first if you set the variable to a certain number in the page script; it'll only work when you click to the second page.  

I am so confuse...

11 years ago

Ah yes, that... They work fine (just not how you are/where expecting).

Here is something to keep in mind -

~Variable Changes on Link Scripts go into effect before the new page loads.
~Variable Changes on Page Scripts go into effect when you leave the Page they are on.

Set up a few Variables to Show on your Pages, and then watch how they change with Link vs. Page Scripts as you go through them.

I am so confuse...

11 years ago

Ah, I see. Page script skips a turn before working, and link scripts work right away. Okay.