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

m
m
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The '''ON AGENT''' can be used in order to trigger events that you want to occur when an Agent has finished speaking.
+
The '''ON AGENT''' triggers when an Agent has finished speaking.
  
 
== Synopsis ==
 
== Synopsis ==
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>''' - The corresponding {{mIRC|access levels}} for the event to trigger.
  
<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.
  
== Example ==
+
== {{mIRC|local identifiers}} ==
'''After an Agent finishes speaking, have them say ''And now, I am finished!'''''
 
<source lang="mIRC">ON *:AGENT:gtalk $agentname And now, I am finished!</source>
 
  
'''When the Agent finishes speaking, have them say their own Agent name'''
+
The on agent event expose one local identifier:
<source lang="mIRC">ON *:AGENT:gtalk $agentname My name is $agentname</source>
 
  
== Compatibility ==
+
=== {{mIRC|$agentname}} ===
Added: mIRC v5.9
 
  
Addon On: 26/04/2001
+
Return the name of the agent triggering the event
  
== See Also ==
+
== Example ==
* [[/gload command - mIRC|/gload]]
 
  
* [[/gunload command - mIRC|/gunload]]
+
'''After an Agent finishes speaking, echoes that it finished'''''
 +
<source lang="mIRC">ON *:AGENT:echo -s agent $agentname finished talking</source>
  
* [[/gshow command - mIRC|/gshow]]
+
== Compatibility ==
 +
{{mIRC compatibility|5.9}}
  
* [[/ghide command - mIRC|/ghide]]
+
== See Also ==
 
+
* [[List of on events - mIRC|mIRC Events]]
* [[/gmove command - mIRC|/gmove]]
 
 
 
* [[/gsize command - mIRC|/gsize]]
 
 
 
* [[/gtalk command - mIRC|/gtalk]]
 
 
 
* [[/gplay command - mIRC|/gplay]]
 
 
 
* [[/gpoint command - mIRC|/gpoint]]
 
 
 
* [[/gstop command - mIRC|/gstop]]
 
 
 
* [[/gopts command - mIRC|/gopts]]
 
 
 
* [[/gqreq command - mIRC|/gqreq]]
 
 
 
* [[$agent identifier - mIRC|$agent]]
 
 
 
* [[$agentname identifier - mIRC|$agentname]]
 
  
* [[$agentstat identifier - mIRC|$agentstat]]
+
* {{mIRC|/gload}}
 +
* {{mIRC|/gunload}}
 +
* {{mIRC|/gshow}}
 +
* {{mIRC|/ghide}}
 +
* {{mIRC|/gmove}}
 +
* {{mIRC|/gsize}}
 +
* {{mIRC|/gtalk}}
 +
* {{mIRC|/gplay}}
 +
* {{mIRC|/gpoint}}
 +
* {{mIRC|/gstop}}
 +
* {{mIRC|/gopts}}
 +
* {{mIRC|/gqreq}}
 +
* {{mIRC|$agent}}
 +
* {{mIRC|$agentname}}
 +
* {{mIRC|$agentstat}}
 +
* {{mIRC|$agentver}}
 +
* [[List of on events - mIRC|mIRC Events]]
  
* [[$agentver identifier - mIRC|$agentver]]
+
[[Category:mIRC on events|agent]]

Latest revision as of 11:44, 21 September 2017

The ON AGENT triggers when an Agent has finished speaking.

Synopsis[edit]

ON <level>:AGENT:<commands>

Parameters[edit]

  • <level> - The corresponding access levels for the event to trigger.
  • <commands> - This is the area in which you want to perform the commands to execute after an Agent has finished speaking.

local identifiers[edit]

The on agent event expose one local identifier:

$agentname[edit]

Return the name of the agent triggering the event

Example[edit]

After an Agent finishes speaking, echoes that it finished

ON *:AGENT:echo -s agent $agentname finished talking

Compatibility[edit]

Added: mIRC v5.9
Added on: 26 Apr 2001
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]