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

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