I am attempting to write a trigger for spawning one of three groups of randomly selected units at a random time between 180 and 360 game seconds. I have created two global variables with actions in my "initialisation" trigger so set them both to random integers (180 - 360 and 1 - 3). I plan to use these random values to determine when the units are spawned and which units spawn.
I want to create an event - - Timer - Time elapsed is (global variable 180 - 360) game seconds. Upon selecting the value for the amount of game seconds elapsed, my global variable does not show up in the variables tab.
So basically, I would like one of 3 unit groups to spawn at random time in the 1st few minutes of the game. Am I going about this in completely the wrong way because I am a total noob? So far I have only made one map with the editor and it was melee, despite going through various tutorials I'm still swimming in molasses here, please help me out.
EDIT: Found it! - Elapsed time is (Function - random real) I've been staring at the trigger screen scratching my head for an hour now.
I am attempting to write a trigger for spawning one of three groups of randomly selected units at a random time between 180 and 360 game seconds. I have created two global variables with actions in my "initialisation" trigger so set them both to random integers (180 - 360 and 1 - 3). I plan to use these random values to determine when the units are spawned and which units spawn.
I want to create an event - - Timer - Time elapsed is (global variable 180 - 360) game seconds. Upon selecting the value for the amount of game seconds elapsed, my global variable does not show up in the variables tab.
So basically, I would like one of 3 unit groups to spawn at random time in the 1st few minutes of the game. Am I going about this in completely the wrong way because I am a total noob? So far I have only made one map with the editor and it was melee, despite going through various tutorials I'm still swimming in molasses here, please help me out.
EDIT: Found it! - Elapsed time is (Function - random real) I've been staring at the trigger screen scratching my head for an hour now.