Initial Upload
Initial Upload
This commit is contained in:
23
_module/nss/shp_listnr_conv.nss
Normal file
23
_module/nss/shp_listnr_conv.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
int nLine = GetListenPatternNumber();
|
||||
object oSpeaker = GetLastSpeaker();
|
||||
object oShaper;
|
||||
// SpeakString("nLine is" + IntToString(nLine)); //debug
|
||||
// SpeakString("Speaker is " + GetName(oSpeaker)); //debug
|
||||
if(nLine == 2020)
|
||||
{
|
||||
if (GetLocalInt(oSpeaker, "iShaper") == 1)
|
||||
{
|
||||
oShaper = oSpeaker;
|
||||
string sMessage = GetMatchedSubstring(0);
|
||||
// SpeakString("Your message is " + sMessage); //debug
|
||||
SetLocalString(OBJECT_SELF, "sShaperMessage", sMessage);
|
||||
// SpeakString("ShaperMessage is " + GetLocalString(OBJECT_SELF,"sShaperMessage")); //debug
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user