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

Erm: text on event... Help plz :D

Status
Not open for further replies.
Level 2
Joined
Jun 29, 2004
Messages
19
Event : a Unit changes owner

How to make a text that will be shown to all and it will say : <Unit> changes owner from <1Plr> to <2Plr)>

Remember there are more than 2 players, so not so easy
 
Level 13
Joined
May 5, 2004
Messages
1,330
Not so easy. Working on it.

Edit: Hm, again took me only 5 mins

ChangingOwner
Events
Unit - A unit Changes owner
Conditions
Actions
Game - Display to (All players) the text: ((String((Unit-type of (Triggering unit)))) + ( changed the owner from + ((Name of (Previous owner)) + ( to + (Name of (Owner of (Ownership-changed unit)))))))

But I think it's a bit difficult to understand. If you don't understand it, I'll give a more detailed description. Small hint: concatenate strings
 
Status
Not open for further replies.
Top