• 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] tower defence trigger system help

Status
Not open for further replies.
Level 3
Joined
Jul 19, 2007
Messages
19
I'm making a tower defence map, but I want to devise a system where if someone blocks with their towers and the creeps attack and kill a tower I want to re-issue the order to all the attacking creeps to move a region

I thought this would be simple enough, but what I produced actually made war craft crash every time a creep went to attack a tower

so I'd really be grateful if someone could explain how I could create such a system or an alternative solution
 
Level 6
Joined
Feb 2, 2005
Messages
205
I would do it with a Timer and a Unit Group. Add All Stopped Unit to a Group start the Timer, When Timer is done set back to move. Would look like this, no garanty on right Trigger have no World Editor in front of me.

  • Events
    • Unit - A Unit Stops
  • Conditions
    • Owner of Unit is equal to (Your Creep Owner Player)
  • Actions
    • Set point = center of (last region)
    • Unit Group - Add (Triggering Unit) to Unit Group Stopper
    • Unit - Order (Triggering Unit) to attack move to point
    • If timerStarted not equal to true
      • then actions
        • Timer - start Timer TimerFTW
        • Set timerStarted = True
      • else
  • TimerFTW
    • Events
      • Timer Expires TimerFTW
    • Conditions
    • Actions
      • Unit Group - Pick every Unit in Stopper
        • Unit - Oder Picked Unit to move to point
        • Unit Group - Remove Picked Unit from Group Stopper
      • Set timerStarted = False
You could also set the Region fix, i didnt remove that leak on porpose, because you will need the region the whole game. Hope you get what i mean, i'll post the correct Triggers later on.

Edit: aw i forgot something
 
Last edited:
Status
Not open for further replies.
Top