• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Roshan dies = Super Creep Spawn Trigger

Status
Not open for further replies.
Event
-A unit dies
Conditions
-Triggering unit Equal to Roshan 001 <gen>
Actions
-If player number of owner of killing unit less than or equal to HIGHEST_PLAYER_NUMBER_FOR_SENTINEL
-Then
--Set SentCount = SentCount + 1
-Else
--Set ScourCount = ScourCount + 1


It depends on how your spawn system works.
You should keep a count variable for the number of times Roshan's been killed.
The above trigger will increase the count by 1 for whichever team killed Roshan.

In your spawn system, you would first check if SentCount is greater than 0.
If it is, you do a For Integer A loop from 1 to SentCount and create a supercreep on each lane.
Then you'd check if ScourCount is greater than 0, and if it is, you do a For Integer A loop from 1 to ScourCount and create a supercreep on each lane.
 
Status
Not open for further replies.
Top