It would be great to have the way to change character description.
In fact, now it can be done only by deleting and creating character again.
Very often people do not change the description by mistake.
Change character description
Re: Change character description
This is actually something that could be done pretty easily via the OnPlayerChat event.
An example:
In this case you would just type "/bio "(with the space) followed by whatever you want your bio to be. Something like: "/bio You hail from the far off lands of Hufflepuff and have decided to set off in search of a better house."
An example:
Code: Select all
else if (GetStringLeft(sSaid, 5) == "/bio ")
{
string sRemove = StringParse(sSaid, " ");
string sBio = StringRemoveParsed(sSaid, sRemove, " ");
SendMessageToPC(oSpeaker, "You have reset your current bio.");
SetDescription(oSpeaker, sBio);
//ExportSingleCharacter(oSpeaker);
}
"When the student is ready.....the master appears" Old Zen Saying
Re: Change character description
I don't mean so radical. IMHO, changing gender of character is too much. I propose just changing of it's description. Name of function is like SetDescription(object, string, int). I can see it in my test location to be sure, because I already tried it.
https://nwnlexicon.com/index.php?title=SetDescription
PS: Maybe, it would be good to have item to activate this functionality or dummy in some placy like dummy to change appearance of weapon or armor.
https://nwnlexicon.com/index.php?title=SetDescription
PS: Maybe, it would be good to have item to activate this functionality or dummy in some placy like dummy to change appearance of weapon or armor.
Re: Change character description
What I posted above doesn't change gender. That's "bio" as in "biography" AKA player description.sergeil wrote: ↑Mon Feb 21, 2022 12:57 am I don't mean so radical. IMHO, changing gender of character is too much. I propose just changing of it's description. Name of function is like SetDescription(object, string, int). I can see it in my test location to be sure, because I already tried it.
https://nwnlexicon.com/index.php?title=SetDescription
PS: Maybe, it would be good to have item to activate this functionality or dummy in some placy like dummy to change appearance of weapon or armor.
"When the student is ready.....the master appears" Old Zen Saying
Re: Change character description
I was not able to find function how to read text string from talk window. As I understand, it is part of conversation.Qui Chang wrote: ↑Sat Feb 19, 2022 10:33 pmCode: Select all
if (GetStringLeft(sSaid, 5) == "/bio ") { ... }
Can you post small example? How you receive text to sSaid variable?
Re: Change character description
I went and added a function like this. Type /bio=Enter your text here.
Re: Change character description
https://nwnlexicon.com/index.php?title=GetPCChatMessage
sergeil wrote: ↑Tue Feb 22, 2022 12:45 pmI was not able to find function how to read text string from talk window. As I understand, it is part of conversation.Qui Chang wrote: ↑Sat Feb 19, 2022 10:33 pmCode: Select all
if (GetStringLeft(sSaid, 5) == "/bio ") { ... }
Can you post small example? How you receive text to sSaid variable?
Re: Change character description
Thank you very much
Re: Change character description
it could be great if it can be realized /bio+, means, append string from new line
As example
/bio=-The Family Clan-
/bio+Good girl from great family
----------------------------------------
-The Family Clan-
Good girl from great family
----------------------------------------
In case of
/bio+
means new line to append
/bio=-The Family Clan-
/bio+
/bio+Good girl from great family
----------------------------------
-The Family Clan-
Good girl from great family
----------------------------------
As example
/bio=-The Family Clan-
/bio+Good girl from great family
----------------------------------------
-The Family Clan-
Good girl from great family
----------------------------------------
In case of
/bio+
means new line to append
/bio=-The Family Clan-
/bio+
/bio+Good girl from great family
----------------------------------
-The Family Clan-
Good girl from great family
----------------------------------