Files
HeroesStone_PRC8/_module/nss/tlr_onconv.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

38 lines
1007 B
Plaintext

//::///////////////////////////////////////////////
//:: 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(!GetIsPC(oShouter))
return;
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));
}
}
}