ijakor Posted September 6, 2018 Posted September 6, 2018 Time Control Script This script should do 3 things 1 Checks at specific time (eg once per game hour) an external file for entrys in this file random timed events and/or scripts and the conditions are defined. 2. Executes those scripts / events 3. Writes the a debug log based on the external file The advantage of this idea would be that modders can define a lot of timed events/scripts without harming the script engine of the game itself. you only run 1 script that controls a lot of scripts and not a lot of scripst that each control themselfes
Tyrant99 Posted September 6, 2018 Posted September 6, 2018 You can always just toggle variables. A Global Variable for instance could be set in one script and the value accessed by any other script easily, wouldn't need to link the scripts in any way. Could just toggle them between 1 and 0 depending on if your event was running or not, 1 at start, 0 at end... Then a registerforsingleupdate loop would work as a timer in your main script, but there's multiple ways to set up timers.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.