How Do You Handle Ws Rule With 2 Ja's Up?

Language: JP EN DE FR
New Items
2023-11-19
users online
Forum » FFXI » Jobs » Thief » 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
Server: Ragnarok
Game: FFXI
Posts: 94
By Ragnarok.Jajabiondina 2012-01-28 12:50:27
Link | Quote | Reply
 
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.
 Lakshmi.Eyrhika
Offline
Server: Lakshmi
Game: FFXI
user: Eyrhika
Posts: 764
By Lakshmi.Eyrhika 2012-01-28 12:59:21
Link | Quote | Reply
 
<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
Server: Ragnarok
Game: FFXI
Posts: 94
By Ragnarok.Jajabiondina 2012-01-28 13:08:20
Link | Quote | Reply
 
Thx ^^
 Ragnarok.Jajabiondina
Offline
Server: Ragnarok
Game: FFXI
Posts: 94
By Ragnarok.Jajabiondina 2012-01-28 13:20:28
Link | Quote | Reply
 
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">
 Lakshmi.Eyrhika
Offline
Server: Lakshmi
Game: FFXI
user: Eyrhika
Posts: 764
By Lakshmi.Eyrhika 2012-01-28 13:37:13
Link | Quote | Reply
 
Ahh ok
 Fenrir.Motenten
VIP
Offline
Server: Fenrir
Game: FFXI
user: Motenten
Posts: 764
By Fenrir.Motenten 2012-02-02 13:08:20
Link | Quote | Reply
 
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
Server: Ragnarok
Game: FFXI
Posts: 94
By Ragnarok.Jajabiondina 2012-02-03 00:44:00
Link | Quote | Reply
 
Nice thank you, i found out eventually AND wouldnt work afterall and gave up, kudos for explaining stuff.
 Bismarck.Chaosprime
Offline
Server: Bismarck
Game: FFXI
Posts: 314
By Bismarck.Chaosprime 2012-02-26 19:03:37
Link | Quote | Reply
 
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.
Log in to post.