• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

[Trigger] Just an chat Trigger to SetName by command

Status
Not open for further replies.
Level 9
Joined
Mar 24, 2011
Messages
353
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.
 
Level 24
Joined
Feb 27, 2019
Messages
783
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))
 
Level 9
Joined
Mar 24, 2011
Messages
353
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.
Top