From WikiChip
Difference between revisions of "mirc/on events/on agent"
< mirc‎ | on events

(See Also)
(Parameters)
Line 5: Line 5:
  
 
== Parameters ==
 
== Parameters ==
<span style="display: inline-block; width: 105px;">'''<level>'''</span>This is the user level of the agent trigger. More than likely, you want this set to either * or 1.
+
* '''<level>''' - This is the user level of the agent trigger. More than likely, you want this set to either * or 1.
  
<span style="display: inline-block; width: 105px;">'''<commands>'''</span>This is the area in which you want to perform the commands to execute after an Agent has finished speaking.
+
* '''<commands>''' - This is the area in which you want to perform the commands to execute after an Agent has finished speaking.
 +
 
 +
== {{mIRC|local identifiers}} ==
 +
 
 +
The on agent event expose one local identifier:
 +
 
 +
=== {{mIRC|$agentname}} ===
 +
 
 +
Return the name of the agent triggering the event
  
 
== Example ==
 
== Example ==

Revision as of 10:51, 20 January 2016

The ON AGENT can be used in order to trigger events that you want to occur when an Agent has finished speaking.

Synopsis

ON <level>:AGENT:<commands>

Parameters

  • <level> - This is the user level of the agent trigger. More than likely, you want this set to either * or 1.
  • <commands> - This is the area in which you want to perform the commands to execute after an Agent has finished speaking.

local identifiers

The on agent event expose one local identifier:

$agentname

Return the name of the agent triggering the event

Example

After an Agent finishes speaking, echoes that it finished

ON *:AGENT:echo -s agent finished talking

Compatibility

Added: mIRC v5.9

Addon On: 26/04/2001

See Also