Triggers: Difference between revisions
From Iron Realms Nexus Client Documentation
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
4. You have recovered balance. | 4. You have recovered balance. | ||
'''Trigger Name:''' (Optional) The name of the trigger. | '''Trigger Name:''' (Optional) The name of the trigger. The name is an identifier that will show up in your list of triggers. It is not required for your trigger and have nothing to do with it operation. | ||
'''Matching Type:''' There are four options. | '''Matching Type:''' There are four options. | ||
Line 32: | Line 32: | ||
* Begins with: Will only match a line that starts with your trigger text in it. | * Begins with: Will only match a line that starts with your trigger text in it. | ||
* Exact match: Will only match a line that matches exactly like your trigger text. | * Exact match: Will only match a line that matches exactly like your trigger text. | ||
* Regular expression: This will match any regular expression | * Regular expression: This will match any regular expression patterns. This is advanced, but good to learn. | ||
** http://www.w3schools.com/js/js_regexp.asp | ** Examples | ||
** http://www.regular-expressions.info/ | *** | ||
*** | |||
** Regular Expression Help: | |||
*** 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: | '''Whole Words Only:''' If this box is checked, the trigger will only check whole words. For example: |
Revision as of 15:57, 26 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.
Step 2. Click the 'Add' Button and select 'Add a Trigger'.
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. The name is an identifier that will show up in your list of triggers. It is not required for your trigger and have nothing to do with it operation.
Matching Type: There are four options.
- Contains: This will match any line that has your trigger text in it.
- Begins with: Will only match a line that starts with your trigger text in it.
- Exact match: Will only match a line that matches exactly like your trigger text.
- Regular expression: This will match any regular expression patterns. This is advanced, but good to learn.
- Examples
- Regular Expression Help:
- Examples
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.