Actions

Triggers: Difference between revisions

From Iron Realms Nexus Client Documentation

No edit summary
No edit summary
Line 19: Line 19:


==== Matching Options ====
==== Matching Options ====
'''Trigger Text:''' In this field you put the text you want to match.
Examples:
1. You have recovered balance.
2. You have recovered
3. recovered balance.
4. You have recovered balance.
 
'''Trigger Name:''' (Optional) The name of the trigger. This name will how up in your list of triggers.
 
'''Matching Type:''' There are four options.
1. Contains
2. Begins with
3. Exact match
4. Regular expression
 
http://www.w3schools.com/js/js_regexp.asp
http://www.regular-expressions.info/
 
'''Whole Words Only:''' If this box is checked, the trigger will only check whole words. For example:
 
'''Case Sensitive:''' The case has to be the same when matching a trigger. For example, if this box is checked and your trigger text is 'You have recovered balance' then the text 'You HAVE reCOvered balance' will not match. However, if you uncheck the this option, the case will not matter.





Revision as of 21:19, 25 June 2015

Triggers are used to automatically send commands to the game when certain lines of text are received from the game.


How to Create a New Trigger

Step 1. Open the settings page and click the 'Reflexes' tab.

File:Example.jpg


Step 2. Click the 'Add' Button and select 'Add a Trigger'.

File:Example.jpg


Step 3. Options for Triggers.

There are two main parts of a trigger. First, you need to match the text you wish to trigger from. Second, you need to create the action that will happen when the text is matched.

Matching Options

Trigger Text: In this field you put the text you want to match. Examples: 1. You have recovered balance. 2. You have recovered 3. recovered balance. 4. You have recovered balance.

Trigger Name: (Optional) The name of the trigger. This name will how up in your list of triggers.

Matching Type: There are four options. 1. Contains 2. Begins with 3. Exact match 4. Regular expression

http://www.w3schools.com/js/js_regexp.asp http://www.regular-expressions.info/

Whole Words Only: If this box is checked, the trigger will only check whole words. For example:

Case Sensitive: The case has to be the same when matching a trigger. For example, if this box is checked and your trigger text is 'You have recovered balance' then the text 'You HAVE reCOvered balance' will not match. However, if you uncheck the this option, the case will not matter.


Action Options

Examples

Balance Recovery Attack: This is an example of a trigger to automatically attack a target when you recover balance.