(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > Triggers & Scripts

Triggers & Scripts Discussions regarding GUI triggers & JASS/AI scripts may be found here. Please review the » JASS Tutorials » Trigger Tutorials

Reply
 
LinkBack Thread Tools Display Modes
Old 07-24-2008, 12:27 AM   #1 (permalink)

User
 
Join Date: Jul 2007
Posts: 8

13th_Blank is an unknown quantity at this point (0)


changing names in game

How do I add the trigger that allows a player to change their name in-game like you could once in Parasite?
13th_Blank is offline   Reply With Quote
Old 07-24-2008, 02:30 AM   #2 (permalink)
 
Marcelo Hossomi's Avatar

Brazil Fan
 
Join Date: Dec 2005
Posts: 408

Marcelo Hossomi has little to show at this moment (28)Marcelo Hossomi has little to show at this moment (28)Marcelo Hossomi has little to show at this moment (28)


Events
Player - Player 1 (Red) types a message containing -name as a substring
Conditions
Actions
Set newName = (Entered Chat String)
Set newName = Sustring( newName, 7, Lenght(newName) )
Player - Set name of (Triggering Player) to newName

That is, whenever a player types the command to change name, it will store the string from the 7th character on ("-name " has 6 chars, so stat from the 7th) and change the name of the player who typed it.
__________________

YIN-YANG BATTLE - active
TERRAINiii - HEROESiiii - ITEMSiiiii - EVENTSiiii

ARCANE TD - paused
TERRAINiii - RACESiiiii - CREEPSiiii - EVENTSiiii

Marcelo Hossomi is offline   Reply With Quote
Old 07-24-2008, 11:23 AM   #3 (permalink)

I own you. Get over it.
 
Join Date: Aug 2005
Posts: 2,445

Eleandor is just really nice (295)Eleandor is just really nice (295)Eleandor is just really nice (295)Eleandor is just really nice (295)Eleandor is just really nice (295)


You should add "Substring(entered chatstring, 1, 5) equal to -name" in order to be sure they don't do something crazy
__________________
Warcraft 3 is full of bugs since the last patch... meh...
"Waiting for host" in Single Player ?!?
Eleandor is online now   Reply With Quote
Old 07-24-2008, 06:04 PM   #4 (permalink)

User
 
Join Date: Jul 2007
Posts: 8

13th_Blank is an unknown quantity at this point (0)


ok. i have the event, but i dont know where you can find the first two actions?
i looked all over the actions but the only closest thing i could find was
Player - Set name of Player 1 (Red) to (entered chat string)
or is that it?
13th_Blank is offline   Reply With Quote
Old 07-24-2008, 06:54 PM   #5 (permalink)
 
Arvedui's Avatar

Inactivity <3
 
Join Date: Oct 2007
Posts: 1,203

Arvedui has a spectacular aura about (123)Arvedui has a spectacular aura about (123)Arvedui has a spectacular aura about (123)Arvedui has a spectacular aura about (123)


it's the set variable action.

newName is a variable.
__________________
I'm inactive, mostly. If you need anything feel free to not bother me.
Lord of the Rings: The Banished
Terrain ~ 95% (Never really done, right? lol)
Triggers ~ 95%... Units ~ 99%... Custom Models 99% (only have 1 request that I might reconsider)
Spells ~ 25%... Items 100% (easy to have that done when they're handed to you)
All other projects on hold due to lack of support, I will finish them though.
Arvedui is offline   Reply With Quote
Old 07-24-2008, 07:27 PM   #6 (permalink)
 
Marcelo Hossomi's Avatar

Brazil Fan
 
Join Date: Dec 2005
Posts: 408

Marcelo Hossomi has little to show at this moment (28)Marcelo Hossomi has little to show at this moment (28)Marcelo Hossomi has little to show at this moment (28)


Quote:
Originally Posted by Eleandor View Post
You should add "Substring(entered chatstring, 1, 5) equal to -name" in order to be sure they don't do something crazy
Uh never thought about that O.o
__________________

YIN-YANG BATTLE - active
TERRAINiii - HEROESiiii - ITEMSiiiii - EVENTSiiii

ARCANE TD - paused
TERRAINiii - RACESiiiii - CREEPSiiii - EVENTSiiii

Marcelo Hossomi is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing players names subressor World Editor Help Zone 3 09-01-2007 12:08 AM
50 worst video game names of all time and me :D Em! Off-Topic 20 02-24-2007 03:09 AM
Changing Hero Proper names in game PalidinMaster3 Map Development 6 01-07-2005 04:17 AM
What are your game names? Kerrigan Off-Topic 23 10-09-2004 07:44 PM
Changing Hero Text Names? Moogul The Sly Map Development 2 09-12-2004 07:38 AM

All times are GMT. The time now is 09:58 PM.






Your link here 
Current Accounts | Credit Card Debt | Find Local Jobs | Per Insurance | Celebrity Gossip
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle