appearance, standard companion scripts, no variables, and a standard "druid, shaman" starting package.
Modifié par Tchos, 13 août 2013 - 06:36 .
Modifié par Tchos, 13 août 2013 - 06:36 .
int getLanguage()
{
string language = GetFirstName(GetObjectByTag("RB_O004languages"));
if (language == "German")
return 1;
else
return 0;
}
Then, after applying a NWN2 patch (don't remember which one), it stopped working. After some debugging, I realized that GetFirstName returns the original name from the template, not the one that I set. So now I check if (language == "Käferhaufen").
Modifié par Lance Botelle, 13 août 2013 - 06:48 .
Tchos wrote...
Aha! Diophant, based on what you said, I was about to test it after adding a scripted "SetFirstName()" to the initial conversation, but Lance, what you describe looks like just the thing! I'll check all of my companions for errant string refs now. Thanks!
Modifié par Tchos, 13 août 2013 - 07:06 .
Guest_Iveforgotmypassword_*
Modifié par Tchos, 14 août 2013 - 05:50 .
Guest_Iveforgotmypassword_*
Modifié par Tchos, 14 août 2013 - 07:17 .
Guest_Iveforgotmypassword_*