Toggling Movement Speed/refresh Legs In Idle Set.

Language: JP EN DE FR
New Items
2023-11-19
users online
Forum » Windower » Spellcast Scripting » Red Mage » Toggling movement speed/refresh legs in idle set.
Toggling movement speed/refresh legs in idle set.
 Cerberus.Marthos
Offline
Server: Cerberus
Game: FFXI
user: Marthos
Posts: 15
By Cerberus.Marthos 2013-02-08 00:43:08
Link | Quote | Reply
 
I am trying to find a way to manually toggle which leg piece is used in my idle set, that i could change with one macro.

I assume this requires using a variable. I've never been able to understand or get variables to work in my XMLs, I have searched around trying to find a solution but can't figure it out. It seems perfectly possible and even simple, too >.<

Normally, my idle set includes Stearc Subligar for refresh. I would like to toggle that one piece to be movement speed legs so that I don't have to manually swap them in after every cast, they would simply be my idle legs until i changed it back to refresh.

Any help is appreciated. In the likely event that I've missed something obvious then /headdesk, it's late and a lovely time to try figuring stuff out.
 Siren.Thoraeon
Offline
Server: Siren
Game: FFXI
user: Thoraeon
Posts: 2215
By Siren.Thoraeon 2013-02-08 00:53:17
Link | Quote | Reply
 
Code
		<if spell="Freeze" >
			<if advanced='"%EquipLegs" = "Blood Cuisses"'>
				<action type="equip">
					<legs>Stearc Subligar</legs>
				</action>
			</if>
			<elseif advanced='"%EquipLegs" = "Stearc Subligar"'>
				<action type="equip">
					<legs>Blood Cuisses</legs>
				</action>
			</elseif>
		</if>

Make a macro that casts freeze, and you are set. (I would recommend changing the trigger if you were to use something like this on BLM.)
Offline
Posts: 151
By Ashandarei 2013-02-08 00:54:26
Link | Quote | Reply
 
Code
<variables>
	<var name="IdleLegs">Stearc Subligar</var>
</variables>

<sets>
	<set name="Idle">
		<legs>$IdleLegs</legs>
	</set>
</sets>

<rules>
	<if spell="Thunder V">
		<cancelspell />
			<if advanced='"$IdleLegs"="Stearc Subligar"'>
				<var cmd="set IdleLegs MovementLegs" />
			</if>
			<elseif advanced='"$IdleLegs"="MovementLegs"'>
				<var cmd="set IdleLegs Stearc Subligar" />
			</elseif>
			<addtochat color="135">IdleLegs Variable: $IdleLegs</addtochat>
	</if>
</rules>


Just change MovementLegs to the name of your actual movement legs.

Should work, can't test as I don't play anymore, but if someone sees an issue, they can correct me.
 Cerberus.Marthos
Offline
Server: Cerberus
Game: FFXI
user: Marthos
Posts: 15
By Cerberus.Marthos 2013-02-08 01:10:30
Link | Quote | Reply
 
Awesome it works! Thank you for the quick replies, saved me probably several more hours of headaches.

I never thought to use that trigger spell thing, and I was setting my variables up all wrong, I see how it works now and it's as simple as I figured it would be. Should be able to implement this to clean up and optimize some of my other code too, woohoo.

Thanks again /bow
 Siren.Stunx
Offline
Server: Siren
Game: FFXI
user: Bungie
Posts: 903
By Siren.Stunx 2013-02-08 02:52:55
Link | Quote | Reply
 
i personally just have line 1 1st legs, line 2 2nd legs in a macro, toggles just fine.
Log in to post.