Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
18
trunk/smp/0_test3.nss
Normal file
18
trunk/smp/0_test3.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
void main()
|
||||
{
|
||||
if(GetListenPatternNumber() == -1)
|
||||
{
|
||||
BeginConversation();
|
||||
}
|
||||
|
||||
if(GetListenPatternNumber() == 0 && GetIsPC(GetLastSpeaker()))
|
||||
{
|
||||
string sSpeak = GetMatchedSubstring(0);
|
||||
|
||||
SendMessageToPC(GetLastSpeaker(), "Said: " + sSpeak);
|
||||
|
||||
int iSpeak = StringToInt(sSpeak);
|
||||
|
||||
SetLocalInt(OBJECT_SELF, "VFX", iSpeak);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user