How Do You Handle Ws Rule With 2 Ja's Up? |
||
How do you handle ws rule with 2 ja's up?
Ragnarok.Jajabiondina
Offline
If someone can share a way to apply the correct gear depending on which buffs are up, need a rule for solo ws, stacked, solo with assassin, stacked with assasin.
<if buffactive="***. Charge" buffactive="SA">
Stacked ***. charge gear here </if> <elseif buffactive="***. charge" buffnotactive="SA"> Solo /w ***. charge here </elseif> <else> Solo w/o ***. charge gear here </else> I think will work. Ragnarok.Jajabiondina
Offline
Thx ^^
Ragnarok.Jajabiondina
Offline
I get doube attribute error on line with 2 buffactive
Edit got it to work with <if mode="and" buffactive="Sneak Attack|Assassin's Charge"> Neither of those will work.
The first one won't work because, as you discovered, you can only use a given attribute once within a single <if> rule. The second one won't work because mode="AND" does not check the second attribute twice, it checks to be sure that all other attributes return true. For example: Code <if mode="And" BuffActive="Sneak Attack|Assassin's Charge" Area="*Remnants" WeatherElement="Earth"> Would check to see if -either- SA or AC was active (because the 'OR' check is implied in how it's constructed) -and- if you were in a Salvage zone -and- if earth weather was present. The only way to check for two buffs being active at the same time is to have nested <if> checks, such as Code <if BuffActive="Sneak Attack"> <if BuffActive="Assassin's Charge"> ~~ both are active </if> <else> ~~ Only SA active </else> </if> <elseif BuffActive="Assassin's Charge"> ~~ AC active but not SA </elseif> Ragnarok.Jajabiondina
Offline
Nice thank you, i found out eventually AND wouldnt work afterall and gave up, kudos for explaining stuff.
Hi, first a thanks for the code for the 2 JA provided by Montenten, for the most part this worked fine. However, the problem im having is that sometimes the gear swap isnt taking place. it WS's in gear i dont want it to or tell it to. Initially i thought it was the lag in swapping but looking at the chat log i dont get a "Equipment Changed" echo.
Here is my script that im using: Code <if spell="Mercy Stroke"> <if BuffActive="Sneak Attack"> <if BuffActive="Assassin's Charge"> <equip set="Mercy Stroke AssCSA" when="precast" /> <addtochat color="204">***Mercy Stroke AssC+SA Equipped***</addtochat> <equip set="TPGear" when="aftercast" /> </if> <else> <equip set="Mercy Stroke SA" when="precast" /> <addtochat color="204">***Mercy Stroke SA Equipped***</addtochat> <equip set="TPGear" when="aftercast" /> </else> </if> <elseif BuffActive="Assassin's Charge"> <equip set="Mercy Stroke AssCSA" when="precast" /> <addtochat color="204">***Mercy Stroke AssC Equipped***</addtochat> <equip set="TPGear" when="aftercast" /> </elseif> <elseif Buffactive="Trick Attack"> <equip set="Mercy Stroke TA" when="precast" /> <addtochat color="204">***Mercy Stroke TA Equipped***</addtochat> <equip set="TPGear" when="aftercast" /> </elseif> </if> As you can see the idea was to make a set that kept ***. Charge gear equipped to maximise the effect. but occasionally it just wont change for either of them. Am i asking too much from it? or am i simply doing something wrong? Any advice be appreciated. |
||
All FFXI content and images © 2002-2024 SQUARE ENIX CO., LTD. FINAL
FANTASY is a registered trademark of Square Enix Co., Ltd.
|