Jump to content

Would this script idea be possible?


ijakor

Recommended Posts

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

Link to comment

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.

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use