• 🏆 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!

[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