Initial Upload
Initial Upload
This commit is contained in:
23
_module/nss/dmfi_settings4.nss
Normal file
23
_module/nss/dmfi_settings4.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user