Added NWN Dark Sun module contents

Added NWN Dark Sun module contents.
This commit is contained in:
Jaysyn904
2021-07-12 21:24:46 -04:00
parent 556224a658
commit de24f81734
10609 changed files with 146652 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
//::///////////////////////////////////////////////
//:: Tailoring - on Conversation
//:: tlr_onconv.nss
//:: Copyright (c) 2003 Jake E. Fitch
//:://////////////////////////////////////////////
/*
*/
//:://////////////////////////////////////////////
//:: Created By: Jake E. Fitch (Milambus Mandragon)
//:: Created On:March 9, 2004
//:://////////////////////////////////////////////
#include "nw_i0_generic"
void main()
{
// See if what we just 'heard' matches any of our
// predefined patterns
int nMatch = GetListenPatternNumber();
object oShouter = GetLastSpeaker();
if (nMatch == -1) {
if (GetCommandable(OBJECT_SELF))
{
ClearAllActions();
ActionStartConversation(oShouter, "", TRUE);
}
} else if (nMatch == 8888) {
if (GetLocalObject(OBJECT_SELF, "tlr_Client") == oShouter) {
SetLocalString(OBJECT_SELF, "tlr_Spoken", GetMatchedSubstring(0));
}
}
}