• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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,240
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