• 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] Receiving gold and messages.

Status
Not open for further replies.
Level 6
Joined
Dec 26, 2007
Messages
125
Ok, heres the thing:Im working on an AoS map and i was wondering,how do you make triggers so that when your hero get killed,you receive a message exemple:you have been killed by (player name) and you have lost #(gold)
and the one who killed your hero receives # (gold)
 
Level 3
Joined
May 6, 2008
Messages
28
The trigger should be
test
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Killing unit))) + ( has killed + ((Name of (Owner of (Dying unit))) + and has pwned his head for 1000 gold.)))
Player - Add 1000 to (Owner of (Killing unit)) Current gold
Player - Add -1000 to (Owner of (Dying unit)) Current gold
Conditions is boolean comparison.
The action for text is game-text message(explicity timed)
 
Status
Not open for further replies.
Top