• 🏆 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!

Set Name

Status
Not open for further replies.
Level 5
Joined
Jun 18, 2008
Messages
146
Can anyone upload a map with a trigger like this:

Like when a player types: -name (and the name)

and i want it to set the player that typed it to what they typed there,
can anyone show me in a map?

siDeKick
 
  • Set Name
    • Events
      • Player - Player 1 (Red) types a chat message containing -set name- as A substring
      • Player - Player 2 (Blue) types a chat message containing -set name- as A substring
      • Player - Player 3 (Teal) types a chat message containing -set name- as A substring
      • Player - Player 4 (Purple) types a chat message containing -set name- as A substring
      • Player - Player 5 (Yellow) types a chat message containing -set name- as A substring
      • Player - Player 6 (Orange) types a chat message containing -set name- as A substring
      • Player - Player 7 (Green) types a chat message containing -set name- as A substring
      • Player - Player 8 (Pink) types a chat message containing -set name- as A substring
      • Player - Player 9 (Gray) types a chat message containing -set name- as A substring
      • Player - Player 10 (Light Blue) types a chat message containing -set name- as A substring
      • Player - Player 11 (Dark Green) types a chat message containing -set name- as A substring
      • Player - Player 12 (Brown) types a chat message containing -set name- as A substring
    • Conditions
    • Actions
      • Set Temp_P_Group = (Player group((Triggering player)))
      • Player - Set name of (Triggering player) to (Substring((Entered chat string), 11, 100))
      • Game - Display to Temp_P_Group the text: (Your name has been set to + (Name of (Triggering player)))
      • Custom script: call DestroyForce(udg_Temp_P_Group)
 
Status
Not open for further replies.
Top