• 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.

[Trigger] Away From Keyboard System

Status
Not open for further replies.
Level 17
Joined
Nov 26, 2007
Messages
1,964
It'll be something like this:

Make a Unit variable array "Hero(Array)

And a Timer array "Timer(array)

  • Event - Time elapsed is 5 seconds
  • Conditions- Sheep learn to fly
  • Actions- Pick every player in all players and do actions
    • Set hero(player number of picked player) equal to unit owned by picked player of type (Put your hero here)
  • For each integer 1-10 (1-what ever the amount of players yo have) do actions
  • Loop actions- Start timer (integer A) as a oneshot timer that will expire in 120 seconds
  • Event - a unit is issued an order(smart)
  • Conditions -
  • Actions - Destroy Timer(player number of owner of ordered unit)
    • Start Timer(player number of owner of ordered unit) as a one shot timer that will expire in 120 seconds.
  • Start timer(player number of owner of ordered unit)
  • Setting
  • Event - Map intilisation
  • Actions - For each integer A 1-10 do actions
    • Loop actions - Add the event "Timer(Integer A) expires" to (Expire)
  • Expire
  • Event - (Leave this blank, we gave it an event in the last trigger)
  • Conditions
  • Actons - Kill Hero(Integer A)
Sorry, its not exactly like that. I made this freehand from the top of my head so you'll have to check it. Its something like that.
 
Status
Not open for further replies.
Top