The Lua script engine state is persistent the entire time StrokesPlus is running. So if you set a variable in one action, it will still exist and have the same value stored an hour later and can be referenced in a completely separate action.
Note, however, to ensure all variables are checked/initialized if you're going to use them across actions as referencing a variable which hasn't been assigned/declared will likely cause StrokesPlus to crash.