Actions

Balance Recovery Attack: Difference between revisions

From Iron Realms Nexus Client Documentation

(Created page with "Here is a basic example of a reflex. In this example we create a trigger that automatically attacks a monster, I have previously targeted and attacked, when I recover balanc...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Here is a basic example of a reflex.  
The trigger below will automatically attack when you recover balance.


In this example we create a trigger that automatically attacks a monster, I have previously targeted and attacked, when I recover balance.
[[File:Trigger-balance.png]]


First open the setting page and click on the 'Reflexes' tab.
This is fairly straight forward. The main thing that may confuse you is the @tar variable in the command to attack. If I use the client to select targets by clicking on them or by using the tab key, then the @tar variable is automatically set that enemy.


[[File:Example.jpg]]
Here is an example of the output.


Second, click on the 'Add' Button and select 'Add a Trigger'.
[[File:Trigger-balance-sample.png]]


Next, you add the 'Trigger text' you are looking to trigger from. In this case I am using 'You have recovered balance.' In order to better organize your triggers you can create a 'Trigger name'. For this trigger we use the name 'Recover Balance'. The name does not really matter and is just for your purposes. We leave the 'Matching type' as contains.
Notice that the game will try to attack the target after I recover balance, but the target has already been killed. My trigger is not aware my target was killed in this case. Not a big deal, but let's do a more advanced version of this trigger that will keep track of when targets are killed.
 
When the game sends this text, I was to send the command to attack my target. I set the first action to 'Send a command' and then set the command to 'attack @tar'.
 
@tar is a variable automatically set by the game in this case.
 
Here is an example.

Latest revision as of 18:04, 17 February 2016

The trigger below will automatically attack when you recover balance.

This is fairly straight forward. The main thing that may confuse you is the @tar variable in the command to attack. If I use the client to select targets by clicking on them or by using the tab key, then the @tar variable is automatically set that enemy.

Here is an example of the output.

Notice that the game will try to attack the target after I recover balance, but the target has already been killed. My trigger is not aware my target was killed in this case. Not a big deal, but let's do a more advanced version of this trigger that will keep track of when targets are killed.