
Originally Posted by
Sekundes
In an effort to improve my nin, I've started to adapt to nightfyre's nin xml but to do so I'm playing around with autoexec. I've never used it before and it is working but the problem is that it works on all of my jobs.
Would anyone mind showing me how to limit autoexec to only run certain triggers when you are on a certain character and job?
I have seen some people use a seperate *.xml for certain jobs they want to keep triggers in. I use to do that but now for me I use this:
When you change off of NIN it will Unregister any events you set for NIN.
Code:
<!--Unregisters Ninja events when you change to any other job-->
<register event="(regex)jobchange_(?!NIN).*(/regex)" silent="true">
ae unregister 12343
</register>
This is my entire NIN jobchange I use in my characters xml. I included all the lines I use just to show what can be done.
The "ae register" event however is what you are asking about. Since the ID number is the same as the Unregister above they work together so other jobs dont run your NIN events.
Code:
<!--Ninja + Register Dancing Chains trigger for Variables-->
<register event="jobchange_nin/*" silent="true">
input /macro book 1;
wait 1;
input /macro set 1;
input /echo ------------------------------------------------------------ Job changed to NIN;
ae register 12343 "time_7.00|time_17.00|losebuff_Migawari|gainbuff_Migawari" input /weaponskill "Dancing Chains" <t>;
bind F10 input /ws "Blade: Metsu" <t>;
wait 5;
input /weaponskill "Dancing Chains" <t>
</register>
Of course you might need to edit it a little to work for you but I find this works well for me. That way I dont need a third layer of job*.xml for events.
Hope this helps and I explained it right. Good Luck