state variables persists between recompilation of the script. They are initialised in an initialisation block.
state:test { a = 1, b = 2, c = "hello world" }
frameUpdate { a = a + 1; b = b + 1; c = c + "!"; }
persist:test { a = 1, b = 2, c = "hello world" }