ScriptRunning, ScriptName
If ( ScriptRunning, MessageTest == 1 )
This function returns 1 if the script you ask for is currently running. This is mainly used for global scripts that are written to run the more complex quests.
See also:
ScriptRunning, ScriptName
StartScript, ScriptName
StopScript, ScriptName