I'm browsing in the Scripts menu in VS and I'm reading something interesting I didn't know about before:
definition script - Definition scripts should only contain functions and global variables. These scripts are executed at game startup therefore making the functions available through the whole game
If I get it right, there is a possibility to have a script which runs on the background the WHOLE time during the game? And it would performs actionparts anytime when some "if" is fulfil? It would make no difference in what scene would player be at the moment or whatever he would be doing (=standing on the place doing nothing, performs some other actionscript, looking into his inventory..). Am I getting it right? If so, could you please tell me what exact text should I write into the Script window for a script like that:
If value "ValueX"=2
Change condition "ConditionX" to false
End if
And second question: Is it possible to have a simple script which would change value by the real time? Let say I would like to have a script which would add value 1 to my "valueX" EVERY hour of play time during the WHOLE game. And it would work with load/save system correctly.