24 lines
776 B
Plaintext
24 lines
776 B
Plaintext
void main()
|
|
{
|
|
int nMatch = GetListenPatternNumber();
|
|
object oShouter = GetLastSpeaker();
|
|
object oIntruder;
|
|
|
|
if (nMatch == -1 && GetCommandable(OBJECT_SELF))
|
|
{
|
|
ClearAllActions();
|
|
BeginConversation();
|
|
}
|
|
else
|
|
if(nMatch == 31420 && GetIsObjectValid(oShouter) && GetIsPC(oShouter))
|
|
{
|
|
string sSaid = GetMatchedSubstring(0);
|
|
string sPhrase = GetLocalString(oShouter, "EffectSetting");
|
|
|
|
SetLocalFloat(oShouter, sPhrase, StringToFloat(sSaid));
|
|
DeleteLocalString(oShouter, "EffectSetting");
|
|
DelayCommand(0.5, ActionSpeakString("The setting " + sPhrase + " has been changed to " + FloatToString(GetLocalFloat(oShouter, sPhrase))));
|
|
DelayCommand(1.5, DestroyObject(OBJECT_SELF));
|
|
}
|
|
}
|