logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
SetPCName

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules
View previous topic :: View next topic  
Author Message
sificvoid



Joined: 01 Dec 2008
Posts: 9

PostPosted: Thu Dec 04, 2008 23:23    Post subject: SetPCName Reply with quote

I was wondering if there is any way to change a character's name, maybe by writing to the bic using leto or exalt? Ive gone through the various functions for both plugins and found a function to GetPCFileName but not to Set.

We could be doing a massive conversion of our clan system soon and our players have aske dto be able to rename their toons instead of having to rebuild. Any help would be appreciated, thanks.
Back to top
View user's profile Send private message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Fri Dec 05, 2008 16:19    Post subject: Reply with quote

Yep, just change the /Name variable using Letoscript.
Back to top
View user's profile Send private message
sificvoid



Joined: 01 Dec 2008
Posts: 9

PostPosted: Fri Dec 05, 2008 21:40    Post subject: Reply with quote

Thanks for the response Fireboar. Just to make sure I got this right:

Code:
string SetPCName(string sName) {
    return "/Name = " + sName + ";";
}


and then to call that use this?

Code:
ApplyLetoScriptToPC(SetPCName(sName), oPC, "Please relog to apply your new name");
Back to top
View user's profile Send private message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Sun Dec 07, 2008 14:11    Post subject: Reply with quote

That sounds about right.

EDIT: Nonono! Sorry, my bad!

It's actually...

/FirstName = Bob;
/Lastname = Marley;
Back to top
View user's profile Send private message
sificvoid



Joined: 01 Dec 2008
Posts: 9

PostPosted: Sun Dec 07, 2008 22:08    Post subject: Reply with quote

okay awesome, glad I asked. Thanks again Fireboar.

lol, how ironic, I been listenin to Bob all mornin.

I think Ill be using the chat plugin so that the players can type in their new name during dialog, unless anyone has a better idea about how to go about it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group