24 lines
684 B
Plaintext
24 lines
684 B
Plaintext
|
|
||
|
|
||
|
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
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|