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

[General] What is, Entering Chat String?

Status
Not open for further replies.
Level 6
Joined
Dec 21, 2011
Messages
237
What is, Entering Chat String?
I want to change hero name as we want.
You must Enter -Set hero name "Hero Name"
Will change the hero name :D.
How to do that?:vw_wtf:
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
You can't change a hero's name in-game.

You can store the sting into a variable, and use the variable for something:
  • Untitled Trigger 051
    • Events
      • Player - Player 1 (Red) types a chat message containing -set hero name as A substring
    • Conditions
      • (Substring((Entered chat string), 14, (Length of (Entered chat string)))) Equal to -set hero name
    • Actions
      • Set string = (Substring((Entered chat string), 16, (Length of (Entered chat string))))
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
You can't change a hero's name in-game.

You can store the sting into a variable, and use the variable for something:
  • Untitled Trigger 051
    • Events
      • Player - Player 1 (Red) types a chat message containing -set hero name as A substring
    • Conditions
      • (Substring((Entered chat string), 14, (Length of (Entered chat string)))) Equal to -set hero name
    • Actions
      • Set string = (Substring((Entered chat string), 16, (Length of (Entered chat string))))

what is the maximum string length in chat?
 
Status
Not open for further replies.
Top