• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Just an chat Trigger to SetName by command

Status
Not open for further replies.
Level 9
Joined
Mar 24, 2011
Messages
354
Remember the "cheats" like: greedisgood X

Greedisgood = Command
X = amount
(?)

I need an command / code similar but is for Unit Name...
Ex: -SetName_Talon

The selected Unit change her name for Talon, understand?

Or i do -SetName_OldBear
The selected Unit change her name for OldBear o thats any other think thats i (or map player) want to rename the unit :/

how i can do this? Thanks.
 
Youll need to use substring in the event. If the substring is abcde and you want to display letters b-d then set it to 2, 4 and it will display bcd

  • Substring
    • Events
      • Player - Player 1 (Red) types a chat message containing -SetName_ as A substring
    • Conditions
      • (Substring((Entered chat string), 1, 9)) Equal to -SetName_
    • Actions
      • Game - Display to (All players) the text: (Substring((Entered chat string), 10, 26))
 
Youll need to use substring in the event. If the substring is abcde and you want to display letters b-d then set it to 2, 4 and it will display bcd

  • Substring
    • Events
      • Player - Player 1 (Red) types a chat message containing -SetName_ as A substring
    • Conditions
      • (Substring((Entered chat string), 1, 9)) Equal to -SetName_
    • Actions
      • Game - Display to (All players) the text: (Substring((Entered chat string), 10, 26))
Omg, Very thanks :grin:
 
Status
Not open for further replies.
Back
Top