Name GetTriggerList
Type Method
Summary Gets the list of triggers
Prototype VARIANT GetTriggerList();
Description Returns an array of all the named triggers currently defined. You can then use GetTrigger or GetTriggerInfo to find out more details about each one.

If GetTriggerList is called from within a plugin, the triggers for the current plugin are used, not the \"global\" MUSHclient triggers.

If you want to find the list of triggers in another plugin, or the global MUSHclient triggers, use \"GetPluginTriggerList\".
VBscript example
dim trList

trList = World.GetTriggerList

If Not IsEmpty (trList) then

  For Each t In trList 
    world.Note t 
  Next

End If
Jscript example
triggerlist = new VBArray(world.GetTriggerList()).toArray();

if (triggerlist)  // if not empty
 for (i = 0; i < triggerlist.length; i++)
   world.note(triggerlist [i]);
PerlScript example
foreach $item (Win32::OLE::in ($world->GetTriggerList))
 {
 $world->note($item);
 }
Returns If there are no triggers (with names) then the return value is empty. Use \"IsEmpty\" to test for this possibility.

Otherwise, it returns a variant array containing the names of all the triggers. Use \"ubound\" to find the number of triggers in the list. You can then use \"GetTrigger\" to find details about each trigger. See the example for how to do this. You can paste this example into an \"Immediate\" window (CTRL+I) to test it.

See also ...