• 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] Victory/Defeat Conditions Help??

Status
Not open for further replies.
Level 2
Joined
Aug 10, 2007
Messages
7
c5b904766696

Im making the victory cond and deafeat as you can see but and it is a hero arena type game but im not sure this will work any advice or help would be greatly admired:infl_thumbs_up:
 
Level 2
Joined
Aug 10, 2007
Messages
7
ok the image did not work so here is script


  • Events-Unit - A unit enters Marine <gen>
  • Conditions
    • (Unit-type of (Triggering unit)) Equal to Wisp
  • Actions
    • Unit - Create 1 Lt.Shrutter for (Owner of (Triggering unit)) at (Center of Start <gen>) facing Default building facing degrees
    • Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Marine <gen>) over 0.00 seconds
    • Unit - Remove (Triggering unit) from the game
 
Level 2
Joined
Aug 10, 2007
Messages
7
oh my gosh this is embarrassing it's the wrong image again ok i got HERE is the corect one.

  • Events
    • Map initialization
    • Unit - A unit owned by Player 1 (Red) Dies
    • Unit - A unit owned by Player 2 (Blue) Dies
    • Unit - A unit owned by Player 3 (Teal) Dies
    • Unit - A unit owned by Player 4 (Purple) Dies
    • Unit - A unit owned by Player 5 (Yellow) Dies
    • Unit - A unit owned by Player 6 (Orange) Dies
  • Conditions
  • Actions
    • -------- You have failed --------
    • Wait 8.00 seconds
    • Player Group - Remove all players from (All enemies of Player 12 (Brown))
 
Level 34
Joined
Sep 6, 2006
Messages
8,873
Why do you have the map init in there? So whenever a players hero/unit dies you want them to lose? Also is that "You have failed" a custom script?

Try -A unit owned by player one dies.

-Game: defeat player with the message "You have failed".
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
it's no custom script, it's a simple comment.

This trigger could work:

Event:
A unit dies
Conditions:
Player - Owner of dying unit is not equal to neutral
Actions:
Player Group - pick every player in (allies of (owner of dying unit)) and do actions:
--> Actions:
------> Player - defeat (picked player) with message: Eleandor pwned you!
 
Level 2
Joined
Aug 10, 2007
Messages
7
Eleandor Thanks you thing worked but i decided to change it to where they just get resurected at the last town
 
Status
Not open for further replies.
Top