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

help with a trigger

Status
Not open for further replies.
Level 9
Joined
Dec 17, 2008
Messages
499
Event: A player has left the game
Actions: Remove all units for Triggering player.

It was something like that, it's been a long time since I've opened WE, and I don't have it ATM.
 
Level 12
Joined
Feb 7, 2008
Messages
1,073
so uh, from what i got from that, you mean you
need a trigger for when a player leaves the game, his heroes are removed from the game instead of killed because normal units respawn after death?

sounds pretty normal problem buuuut i cants answer it.
 
  • Trigger
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • Trigger - Add to Trigger2 <gen> the event (Player - Player(IntegerA) leaves the game)
  • Trigger2
  • Events
  • Conditions
  • Actions
    • Custom script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit in (Units owned by (Triggering player) matching ((Matching unit) is a Hero) Equal to True))) and do (Actions)
      • Loop - Actions
        • Unit - Remove (Picked unit) from the game
 
Last edited:
Status
Not open for further replies.
Top