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

Dueling System

Status
Not open for further replies.
Level 5
Joined
Jun 18, 2008
Messages
146
How to i make if there is only one player left in a dueling area and that player looses, and who ever dies it says that they have been defeated.

plz help me! You will be in credits :)
 
Level 7
Joined
Jun 16, 2008
Messages
327
I don't understand, if there's only one player left alive in the arena, shouldn't he win?

Well, to make it really, really simple I'd just put:

  • Events
    • Unit - A Unit Dies
  • Conditions
    • (Dying Unit) is A Hero equal to True
    • ((Owner of (Dying unit)) controller) Equal to User
  • Actions
    • Game - Display to (Owner of (Dying Unit)) the text: You've died
    • Wait 3.00 seconds
    • Game - Defeat (Owner of (Dying Unit)) with the Message: Defeat
    • Game - Display to (All players) the text: (Owner of (Dying Unit)) has just died.
I find the above more logical. (Remember the text to all the players is two different strings).
 
Level 17
Joined
May 6, 2008
Messages
1,598
Use triggering unit, as triggering unit is a local, dying unit is not a local.
 
Level 5
Joined
Jun 18, 2008
Messages
146
sigh.. i actually dont know how to explain it properly myself =( ill try figure it out myself :/
 
Status
Not open for further replies.
Top