mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
50 lines
684 B
Plaintext
50 lines
684 B
Plaintext
include library.sequencer;
|
|
include library.chat;
|
|
include library.utils;
|
|
|
|
|
|
trigger OnAttach()
|
|
{
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
|
|
trigger OnPreloadComplete()
|
|
{
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
|
|
trigger OnDestroy()
|
|
{
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
|
|
|
|
trigger OnHearSpeech(obj_id objSpeaker, string strText)
|
|
{
|
|
if(strText.equals("stop"))
|
|
{
|
|
sequencer.stopSequence(self);
|
|
stop(self);
|
|
debugSpeakMsg(self, "Stopping");
|
|
}
|
|
if(strText.equals("go"))
|
|
{
|
|
if(utils.hasScriptVar(self, "intSequenceStopped"))
|
|
{
|
|
utils.setScriptVar(self, "intSequenceContinue", 1);
|
|
}
|
|
else
|
|
{
|
|
messageTo(self, "doEvents", null, 1, false);
|
|
}
|
|
debugSpeakMsg(self, "Going!");
|
|
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
} |