I have 3 units that need to spawn at random when you enter a specific region. I need to make so when you enter this region one of 3 units will be created at random so there is an equal chance for each 3 to spawn.
I cannot do this by picking random unit from group. My map is to small and there is no where to put them.
This is my way and it is not working. The same units spawns each time.
Untitled Trigger 008
Events
Unit - A unit enters Region 000 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 10) Less than or equal to 3
Then - Actions
Unit - Create 1 |cffFF8000Massive Infernal of Doom|r for Neutral Hostile at (Center of Region 000 <gen>) facing Default building facing degrees
Trigger - Turn off (This trigger)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 10) Less than or equal to 3
Then - Actions
Unit - Create 1 |CFF1CB619Massive Infernal of Resistance|R for Neutral Hostile at (Center of Region 000 <gen>) facing Default building facing degrees
Trigger - Turn off (This trigger)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 10) Less than or equal to 3
Then - Actions
Unit - Create 1 |CFFE55BB0Massive Infernal of Speed|R for Neutral Hostile at (Center of Region 000 <gen>) facing Default building facing degrees
Trigger - Turn off (This trigger)
Else - Actions
Trigger - Run Untitled Trigger 008 <gen> (checking conditions)
I cannot do this by picking random unit from group. My map is to small and there is no where to put them.
This is my way and it is not working. The same units spawns each time.
Untitled Trigger 008
Events
Unit - A unit enters Region 000 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 10) Less than or equal to 3
Then - Actions
Unit - Create 1 |cffFF8000Massive Infernal of Doom|r for Neutral Hostile at (Center of Region 000 <gen>) facing Default building facing degrees
Trigger - Turn off (This trigger)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 10) Less than or equal to 3
Then - Actions
Unit - Create 1 |CFF1CB619Massive Infernal of Resistance|R for Neutral Hostile at (Center of Region 000 <gen>) facing Default building facing degrees
Trigger - Turn off (This trigger)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 10) Less than or equal to 3
Then - Actions
Unit - Create 1 |CFFE55BB0Massive Infernal of Speed|R for Neutral Hostile at (Center of Region 000 <gen>) facing Default building facing degrees
Trigger - Turn off (This trigger)
Else - Actions
Trigger - Run Untitled Trigger 008 <gen> (checking conditions)