I'm trying to create a queueing system, and I've got 3 arrays, two int, one boolean. I want to be able to create 10 different events in this queue, but add one at a time, and have my Start Event trigger run through the active(true) indexes, and select ONE, run the event, and stop. Since it runs periodically, it will eventually go through all of them and start over. Currently, the Add New Event to Queue crashes the game. Is there a better way to do this? If not, what can I do/add/change to accomplish this?
Here are my triggers:
Start event trigger:
Here are my triggers:
Trigger:
- Add New Event to Queue
- Events
- Conditions
- Actions
- Set NewInt = (NewInt + 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- NewInt Greater than or equal to 11
- Then - Actions
- Set NewInt = 1
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- IntActive[NewInt] Equal to True
- Then - Actions
- Trigger - Run (This trigger) (checking conditions)
- Else - Actions
- If - Conditions
Start event trigger:
Trigger:
- Start Event
- Events
- Time - Every 10.00 seconds of game time
- Conditions
- Actions
- Set IntCurrent = (IntCurrent + 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- IntActive[IntCurrent] Equal to True
- Then - Actions
- Do my events
- Else - Actions
- If - Conditions
- Events