Yep, you want the state object . Be very careful with the state object as it is shared across all scripts in the campaign. It has a memory capacity of 2mb (for everything stored by every script). Don't assign values directly to the state (e.g. state=5). The way to use the state is to make a namespace for your script (e.g. state.PAGENAVIGATOR = {}). Then we assign things to that object of the state (e.g. state.PAGENAVIGATOR.version = 2.0).