• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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