First off create 2 types of triggers and 1 Initialization Trigger / /
The one that creates the unit, and the one that checks/ /
Lets start off with the one that creates.
Create 3 triggers, right ?
1st Trigger / /
Map Initialization
Create a Var = Unit Type
Create another Var = Spawn Point [Array of about 1-3]
Set Spawn Point 1 = Point 1
Set Spawn Point 2 = Point 2
Set Spawn Point 3 = Point 3
Set UnitType(MyNameForUnitTypeVar) 1 = Roach
Set Unit Type 2 = Broodling
Run Trigger (Name of 2nd Trigger / /)
2nd Trigger / / (Initially Off)
Turn (Name of 2nd Trigger Off)
Repeat Actions Forever
Wait , Interval of 2.75 minutes' Periodic won't work out, If you won't try this long process, It only costs 2kb+ tho, But the override grants you better.
[Then at this point create a Variable Integer for the Limit (Unit Limit Maximum of 45)_]
If = Unit Limit 45
Then
Stop All Instances of Trigger, Turn (Name of 2nd Trigger) Off / /
Else
Create 1 UnitType (Random Integer Between 1 and 2) for Player 15 at Spawn Point (Random Integer Between 1 - 3)
set last created unit as [Create another Variable for the unitVarValue = Lets just say OneWaySpawnUnit/ /]
Pick each unit in entire map, Owned by Player 15
Then Order OneWaySpawnUnit to attack Hero Unit and blah blah blah/ / stuffs like that..
Now for the UnitLimit / /
OneWaySpawnUnit enters map
Then
modify UnitLimit + 1
don't forget to create a text for the checker / /
A roach has spawned stuffs like that (1-45)
after the count stops, Dont forget to add up Remove Last Created Unit on the 2nd Trigger / / so that it wont mess up..
then there it goes for the unitSpawn RPG-Style
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
First off create 2 types of triggers and 1 Initialization Trigger / /
The one that creates the unit, and the one that checks/ /
Lets start off with the one that creates.
Create 3 triggers, right ?
1st Trigger / /
Map Initialization
Create a Var = Unit Type
Create another Var = Spawn Point [Array of about 1-3]
Set Spawn Point 1 = Point 1 Set Spawn Point 2 = Point 2 Set Spawn Point 3 = Point 3 Set UnitType(MyNameForUnitTypeVar) 1 = Roach Set Unit Type 2 = Broodling
Run Trigger (Name of 2nd Trigger / /)
2nd Trigger / / (Initially Off)
Turn (Name of 2nd Trigger Off) Repeat Actions Forever
Wait , Interval of 2.75 minutes' Periodic won't work out, If you won't try this long process, It only costs 2kb+ tho, But the override grants you better.
[Then at this point create a Variable Integer for the Limit (Unit Limit Maximum of 45)_]
If = Unit Limit 45
Then
Stop All Instances of Trigger, Turn (Name of 2nd Trigger) Off / /
Else
Create 1 UnitType (Random Integer Between 1 and 2) for Player 15 at Spawn Point (Random Integer Between 1 - 3) set last created unit as [Create another Variable for the unitVarValue = Lets just say OneWaySpawnUnit/ /]
Pick each unit in entire map, Owned by Player 15
Then Order OneWaySpawnUnit to attack Hero Unit and blah blah blah/ / stuffs like that..
Now for the UnitLimit / /OneWaySpawnUnit enters map
Then
modify UnitLimit + 1
don't forget to create a text for the checker / /
A roach has spawned stuffs like that (1-45)
after the count stops, Dont forget to add up Remove Last Created Unit on the 2nd Trigger / / so that it wont mess up..
then there it goes for the unitSpawn RPG-Style