Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Question about State engine and variable storage optimization

$
0
0
Hi everyone!

A quick question about the state engine:

Is it possible to NOT track certain variables in the state engine, but still have them be accessible via the "$variable" formatter?

There are some things i like about the state engine, for instance I can have a variable $score that gets "automagically" updated in the story caption. Neat. However there are some variables that I really think it's a bad idea for me to keep multiple copies of their states because the aggregate over many turns would end up being really large.

Right now I am thinking about storing these variables in the window javascript namespace and then accessing them through functions.

Any better suggestions?

Thanks!

Viewing all articles
Browse latest Browse all 1844

Trending Articles