• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Trigger Help

Status
Not open for further replies.
Level 6
Joined
Feb 18, 2005
Messages
263
I myself would use some kind of periodic timer event ( something like "Every 15 Seconds of Game" )
The trigger should be inactive until all heros are choosen, because otherwise the battle would start ( to keep the sample: ) 15 seconds after the host is within game and not if all players are ready to go.
But you should check if the buildings necessary for the units are placed ( that's it in dota i beliefe, but no shure )

Code:
Event:
 Every 15 Seconds of Game
Condition:
 <spawning condition>
Event:
 if <condition necessary for this unittype> then
  create W units of Type X at position Y owned by Player Z
 Else
  <do nothing>

simply repeat the if-sentece for each spawning-position and/or each required building as you like to ^^
 
Status
Not open for further replies.
Top