Saber Dance XML

Langues: JP EN DE FR
users online
Forum » FFXI » Jobs » Dancer » Saber Dance XML
Saber Dance XML
 Valefor.Kyli
Offline
Serveur: Valefor
Game: FFXI
user: Kyli
Posts: 20
By Valefor.Kyli 2012-06-30 23:07:50
Link | Citer | R
 
I'm trying to macro in my Etoile Tights +2 when I have Saber Dance active. I've tried a couple things and it just does it when I use the JA, but takes it out when I am done using the JA, instead of when the buff is inactive. Does anyone know how to do this?

I apologize if this is a repeat question! I just couldn't find an answer that I could understand.
Thanks!
Offline
Posts: 1020
By Gimpness 2012-06-30 23:49:46
Link | Citer | R
 
try

Code xml
<if status="engaged">
   <if buffactive="saberdance">
      <equip when="aftercast">
         <legs>Etoile Tights +2</legs>
      </equip>
   </if>
</if>


then put

Code xml
<if spell="autoset">
   <equip when="engaged" set="whateveryourengagedsethere">
   <if buffactive="saberdance">
      <equip when="engaged">
         <legs>Etoile Tights +2</legs>
      </equip>
   </if>
</if>

as an autoset rule.
 Valefor.Kyli
Offline
Serveur: Valefor
Game: FFXI
user: Kyli
Posts: 20
By Valefor.Kyli 2012-07-01 13:32:09
Link | Citer | R
 
Thank you so much! I kept trying to figure out how to do it, but I think that I was missing the last autoset code.
 Valefor.Kyli
Offline
Serveur: Valefor
Game: FFXI
user: Kyli
Posts: 20
By Valefor.Kyli 2012-07-01 14:25:43
Link | Citer | R
 
My problem right now is that it will equip my legs when I use the JA, but it doesn't leave them on. I think that the <if buffactive> line isn't working properly :(
 Valefor.Kyli
Offline
Serveur: Valefor
Game: FFXI
user: Kyli
Posts: 20
By Valefor.Kyli 2012-07-01 15:04:22
Link | Citer | R
 
And I finally got it to work! Thanks~
necroskull Necro Bump Detected! [101 days between previous and next post]
Offline
Posts: 977
By Peldin 2012-10-10 21:04:26
Link | Citer | R
 
Why doesn't this work?


Code xml
				<if type="JobAbility>
						<if spell="*Step">
								<if status="engaged" BuffActive="Saber Dance">
									<action type=aftercastdelay delay="1" />
									<action type="equip" when="precast" set="Step"/>
									<action type="equip" when="aftercast" set="Saber Dance"/>
								</if>
								<elseif status="engaged" NotBuffActive="Saber Dance">
									<action type=aftercastdelay delay="1" />
									<action type="equip" when="precast" set="Step"/>
									<action type="equip" when="aftercast" set="DNCTP"/>
								</elseif>
								<else>
									<equip when="precast" set="Step"/>
									<equip when="aftercast" set="DNCIdle"/>
								</else>
						</if>
</if>


Sorry about the weird placement of the last </if> but I had to add that in manually, otherwise I'd have to copy all my job ability rules.
 Siren.Thoraeon
Offline
Serveur: Siren
Game: FFXI
user: Thoraeon
Posts: 2215
By Siren.Thoraeon 2012-10-10 21:11:03
Link | Citer | R
 
Peldin said: »
Code xml
				<if type="JobAbility>
						<if spell="*Step">
								<if mode="and" status="engaged" BuffActive="Saber Dance">
									<action type=aftercastdelay delay="1" />
									<action type="equip" when="precast" set="Step"/>
									<action type="equip" when="aftercast" set="Saber Dance"/>
								</if>
								<elseif mode="and" status="engaged" NotBuffActive="Saber Dance">
									<action type=aftercastdelay delay="1" />
									<action type="equip" when="precast" set="Step"/>
									<action type="equip" when="aftercast" set="DNCTP"/>
								</elseif>
								<else>
									<equip when="precast" set="Step"/>
									<equip when="aftercast" set="DNCIdle"/>
								</else>
						</if>
</if>
Try that.
Offline
Posts: 977
By Peldin 2012-10-10 21:13:09
Link | Citer | R
 
What does mode="and" do?

*edit* It didn't work. For some reason it works when I remove the following:

<if type="JobAbility">

and it's closing argument

</if>

But I don't understand why it won't work.
 Siren.Thoraeon
Offline
Serveur: Siren
Game: FFXI
user: Thoraeon
Posts: 2215
By Siren.Thoraeon 2012-10-10 21:16:28
Link | Citer | R
 
Make it work probably. It should tell it to check both arguments.
Offline
Posts: 977
By Peldin 2012-10-10 21:18:32
Link | Citer | R
 
Here's my entire rules section if that helps. Kinda lengthy.

I'm not very familiar with coding or XML in general so I don't know if it matters on the order of my rules. It's annoying me because something very similar works for my MNK XML just fine.
Offline
Posts: 977
By Peldin 2012-10-10 21:24:50
Link | Citer | R
 
For reference. Here's my rules section for MNK
Offline
Posts: 151
By Ashandarei 2012-10-10 21:55:49
Link | Citer | R
 
It'd be easier if you took all those aftercast delays out such out and change in your auto set rules
Code
<elseif status="engaged">
     <action type="equip" when="engaged" set="DNCTP" />
</elseif>


to
Code
<elseif status="engaged">
    <if buffactive="Saber Dance">
           <equip when="engaged|aftercast" set="Saber Dance" />
    </if>
    <else>
           <equip when="engaged|aftercast" set="DNCTP" />
    </else>
</elseif>




Then if you do that you can change your whole step line to:
Code
<if spell="*Step">
    <equip when="precast" set="step">
</if>
Offline
Posts: 977
By Peldin 2012-10-10 21:59:38
Link | Citer | R
 
OK well I noticed a couple errors. I didn't have a closing quotations after "Jobability so I fixed that.
But then I also noticed that in my MNK rules, I have an extra closing </if> argument after Chakra... and I so now I'm not sure if my MNK rules are going to work. I'll have to check when I get a chance.
Offline
Posts: 977
By Peldin 2012-10-11 00:08:45
Link | Citer | R
 
Ashandarei if I don't have an aftercast equip set when I step, then all I will do is step in the correct gear and then stay in that gear. I need to have it so that after I use the job ability, I swap back to the appropriate gear, which is DNCTP set when Saber Dance isn't up, and Saber Dance set when Saber Dance is up.
 Phoenix.Seshat
Offline
Serveur: Phoenix
Game: FFXI
user: maeko91
Posts: 47
By Phoenix.Seshat 2012-10-11 08:28:15
Link | Citer | R
 
Code
		<if spell="Quickstep|Box Step|Desperate Flourish|Stutter Step|Wild Flourish">
			<equip when="precast" set="StepAcc" />
		</if>


Is from my DNC XML directly, and it puts my back in my current TP set depending on Saber Up/Down as soon as the JA is performed. Ashandarei wrote my XML personally and it works flawlessly so he is correct. It just depends on how the rest of your XML is written.

Edit: To add on to this, you'd have to change your rules as he specified, not just your step rule. By changing the TP/engaged rules to what he specified that is what allows the above coding to work and re-apply your TP sets automatically.
[+]
 Sylph.Peldin
Offline
Serveur: Sylph
Game: FFXI
Posts: 837
By Sylph.Peldin 2012-10-13 00:18:05
Link | Citer | R
 
Yeah I see. He just has aftercast in the status rules instead of in each job ability rule. My main problem was that I had:
<if type="JobAbility">
before my Job Ability rules but it wasn't necessary because I didn't have any parameter set for all Job Abilities like I do for Weapon Skills.
 Sylph.Thelona
Offline
Serveur: Sylph
Game: FFXI
user: Thelona
By Sylph.Thelona 2012-10-13 11:10:22
Link | Citer | R
 
Code
			<if status="engaged" spell="Saber Dance">
                <equip when="aftercast|engaged" set="TP">
                    <head>Ocelomeh Headpiece +1</head>
                    <legs>Etoile Tights +2</legs>
					<back>rancorous mantle</back>
                </equip>
            </if>
            <elseif status="engaged" notbuffactive="Saber Dance">
                <equip when="aftercast|engaged" set="TP" />
            </elseif>
            <elseif status="engaged" buffactive="Saber Dance">
                <equip when="aftercast|engaged" set="TP">
                    <head>Ocelomeh Headpiece +1</head>
                    <legs>Etoile Tights +2</legs>
					<back>rancorous mantle</back>
                </equip>
            </elseif>


This puts up saber dance gear for me when using SD and any aftercast.
[+]
Log in to post.