-setname
Moderator: Cheaters
-
- Forum Staff
- Posts: 912
- Joined: October 21st, 2007, 6:17 am
- Title: 11
- Location: WorLd Of WaRcrAfT
-setname
hi,I wanna make an -setname command like in vampirism fire,anyone can explain me how :O?
~Everything changes~
I have met people who have no dreams, who have simply accepted their fate to work, exist, and die. They are the most miserable people I have ever known.
I have met people who have no dreams, who have simply accepted their fate to work, exist, and die. They are the most miserable people I have ever known.
-
- Honorary wc3edit.net Traitor
- Posts: 468
- Joined: December 10th, 2007, 10:50 pm
- Title: The Professional
- Location: USA
Re: -setname
Here you are
Just set it up like this, but allow that "9" in the Actions be where you type a space. The actual Event doesn't have to have a space.
Just to be clear.
Trigger = "-setname" not "-setname "
So here's what a player does:
-setname IWantMyNameToBeThis
Now the player's name becomes IWantMyNameToBeThis
now if that number 9 was an 8, it would include the e on -setname, so whatever trigger name you use, make sure you include an extra number for that space. "-setname" = 8 characters, the 9 allows it to be blank.
Code: Select all
Events
Player - Player 1 (Red) types a chat message containing -setname as A substring
Conditions
Actions
Player - Set name of (Triggering player) to (Substring((Entered chat string), 9, (Length of (Entered chat string))))
Just set it up like this, but allow that "9" in the Actions be where you type a space. The actual Event doesn't have to have a space.
Just to be clear.
Trigger = "-setname" not "-setname "
So here's what a player does:
-setname IWantMyNameToBeThis
Now the player's name becomes IWantMyNameToBeThis
now if that number 9 was an 8, it would include the e on -setname, so whatever trigger name you use, make sure you include an extra number for that space. "-setname" = 8 characters, the 9 allows it to be blank.
Do you support Durchdringen? If so, add the spoiler to your sig. Durch cares for you, so show your support for Durch!
Spoiler:
-
- Forum Staff
- Posts: 912
- Joined: October 21st, 2007, 6:17 am
- Title: 11
- Location: WorLd Of WaRcrAfT
Re: -setname
Wow great help,thanks
~Everything changes~
I have met people who have no dreams, who have simply accepted their fate to work, exist, and die. They are the most miserable people I have ever known.
I have met people who have no dreams, who have simply accepted their fate to work, exist, and die. They are the most miserable people I have ever known.