| 07-08-2005, 11:50 PM | #1 |
Can someone help me plz, im doing a map and i want the players to be able to change their name (like in those village kind of maps) Can someone help me cos i cant find anything on the trigger list and im not up to learning jass (im gonna be learning c+ at college but not yet) Its the classic name thing: player types message with -name --------- the --------- is what they want it to be, and they are now called ---------. So... Chao-K.O-:-name South Park South Park:Omg it worked!!! i first asked in wc3sear.ch but noone ever answers questions there so i thought id try here instead (this place seems to have more people who care) |
| 07-09-2005, 12:08 AM | #2 |
Code:
Name Change
Events
Player - Player 1 (Red) types a chat message containing -name as A substring
Player - Player 2 (Blue) types a chat message containing -name as A substring
Player - Player 3 (Teal) types a chat message containing -name as A substring
Player - Player 4 (Purple) types a chat message containing -name as A substring
Player - Player 5 (Yellow) types a chat message containing -name as A substring
Player - Player 6 (Orange) types a chat message containing -name as A substring
Player - Player 7 (Green) types a chat message containing -name as A substring
Player - Player 8 (Pink) types a chat message containing -name as A substring
Player - Player 9 (Gray) types a chat message containing -name as A substring
Player - Player 10 (Light Blue) types a chat message containing -name as A substring
Player - Player 11 (Dark Green) types a chat message containing -name as A substring
Player - Player 12 (Brown) types a chat message containing -name as A substring
Conditions
Actions
Player - Set name of (Triggering player) to (Substring((Entered chat string), 7, 27))That will change anyones name to what they choose, with a maxium of a 20 character name. To make it longer change 27 to what you want, then add seven. ALSO try using the search, because I do remember seeing a thread about this not too long ago. |
| 07-09-2005, 12:12 AM | #3 | |
Quote:
yeh, i actually found it just now, but thanks - the one i found is in map form. |
| 07-09-2005, 12:12 AM | #4 |
Code:
Name Change
Events
Player - Player 1 (Red) types a chat message containing -name as A substring
Player - Player 2 (Blue) types a chat message containing -name as A substring
Player - Player 3 (Teal) types a chat message containing -name as A substring
Player - Player 4 (Purple) types a chat message containing -name as A substring
Player - Player 5 (Yellow) types a chat message containing -name as A substring
Player - Player 6 (Orange) types a chat message containing -name as A substring
Player - Player 7 (Green) types a chat message containing -name as A substring
Player - Player 8 (Pink) types a chat message containing -name as A substring
Player - Player 9 (Gray) types a chat message containing -name as A substring
Player - Player 10 (Light Blue) types a chat message containing -name as A substring
Player - Player 11 (Dark Green) types a chat message containing -name as A substring
Player - Player 12 (Brown) types a chat message containing -name as A substring
Conditions
Actions
Player - Set name of (Triggering player) to (Substring((Entered chat string), 7, 0))EDIT: Wow, we all posted at the same time.. |
| 07-09-2005, 12:27 AM | #5 |
I am quite fast and that's why I have the first reply. Nice try though Tim., but it seems I am too fast for you. |
