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

m
(Example)
Line 10: Line 10:
  
 
== Example ==
 
== Example ==
 +
 
'''After an Agent finishes speaking, have them say ''And now, I am finished!'''''
 
'''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>
+
<source lang="mIRC">ON *:AGENT:echo -s agent finished talking</source>
 
 
'''When the Agent finishes speaking, have them say their own Agent name'''
 
<source lang="mIRC">ON *:AGENT:gtalk $agentname My name is $agentname</source>
 
  
 
== Compatibility ==
 
== Compatibility ==

Revision as of 17:35, 23 July 2014

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.

Example

After an Agent finishes speaking, have them say And now, I am finished!

ON *:AGENT:echo -s agent finished talking

Compatibility

Added: mIRC v5.9

Addon On: 26/04/2001

See Also