I am in need of some wisdom and education.
I have set up PWs in the past, with very little knowledge of SQL and a great tutorial that held my hand through the process. (nwnx4, mysql, toolset).
I want this in my PW.
https://neverwintervault.org/project/nwn2/other/tailor-smooth-system
Everything makes sense except…
“If you use the Tailor Smooth System in your module you will have to change the GetPCUid function to match your UID system. Indeed it was designed to be used in the whole SEPTI project and will not be compatible with your module as if.”
Here is the code they say to change with my own UID system:
///////Modify this to call you own ID function ////////
string GetPCUid(object oPlayer)
{
string sOutput;
if(GetIsDM_C(oPlayer))
{
string str = “DMUID_”+GetPCPlayerName(oPlayer)+“_”+GetName(oPlayer);string sTranslate = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_"; while (GetStringLength(str) > 0) { int iTrans = FindSubString(sTranslate, GetStringLeft(str,1)); if(iTrans != -1) { sOutput = sOutput + GetStringLeft(str,1); } str = GetStringRight(str, GetStringLength(str)-1); }
}
else
{
sOutput = GetLocalString(GetSeptiBaseItem(oPlayer), SEPTI_PCUID);
}return sOutput;
}
I guess my question is what is a PCUID, and how do I know if my PW has a system for that, and is there a system that most PWs are using should I need it? Thank you in advance.