Composure Spellcast

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
フォーラム » Windower » Spellcast Scripting » Red Mage » Composure Spellcast
Composure Spellcast
 Ragnarok.Legendarycloud
Offline
サーバ: Ragnarok
Game: FFXI
Posts: 209
By Ragnarok.Legendarycloud 2013-06-06 12:59:28  
I've been modifying someone's spellcast today and I've hit a speedbump with rules for "Composure". I'm not very code-savvy so I don't know the correct words to put in the XML to make it work the way I want. What I'm looking to do is have SC equip full Estoqueur's gear when I'm casting enhancing magic on others, but equip my normal enhancing magic set when casting on myself. (Both with composure up)

I have yet to go home and try out my SC to see if it even works, but I think this is the only section of it that I'm having doubts about.
Code
            <if skill="enhancingmagic">
				<equip when="precast" set="HasteMagic" />
                <if BuffActive="Composure" advanced='"%target"!="<me>"'>
					<equip when="midcast" set="EnhanceOthers" />
				</if>
				<else>
					<equip when="midcast" set="EnhancingMagic" />
					<if spell="Refresh*">
						<equip when="midcast">
							<legs>Estoqueur's Fuseau +2</legs>
						</equip>
					</if>
				</else>
				<if spell="Stoneskin">
                    <equip when="precast" set="Stoneskin"> <waist Lock="Yes">Siegel Sash</waist></equip>
                    <command when="midcast">cancel 37</command>
                    <midcastdelay delay="3.8" />                
                    <equip when="aftercast" set="%status" />
                </if>
                <else>
                    <equip when="midcast" set="%skill" />
                </else>
            </if>
 Diabolos.Yugl
Offline
サーバ: Diabolos
Game: FFXI
user: Yugl
Posts: 138
By Diabolos.Yugl 2013-06-06 13:02:33  
Spelltargettype="SELF"
Spelltargettype="PLAYER"
[+]
 Ragnarok.Legendarycloud
Offline
サーバ: Ragnarok
Game: FFXI
Posts: 209
By Ragnarok.Legendarycloud 2013-06-06 13:07:10  
Thank you!

Would this be correct now?
Code
                                <if BuffActive="Composure" Spelltargettype="PLAYER"
					<equip when="midcast" set="EnhanceOthers" />
				</if>
				<elseif BuffActive="Composure" Spelltargettype="SELF"
					<equip when="midcast" set="EnhancingMagic" />
				</elseif>
 Diabolos.Yugl
Offline
サーバ: Diabolos
Game: FFXI
user: Yugl
Posts: 138
By Diabolos.Yugl 2013-06-07 22:10:23  
I would do SELF before PLAYER because I'm uncertain if your character counts as PLAYER. Other than that, looks good.
[+]
 Odin.Jassik
VIP
Offline
サーバ: Odin
Game: FFXI
user: Jassik
Posts: 9534
By Odin.Jassik 2013-06-07 23:33:29  
you'll want to close those statements though
[+]
 Ragnarok.Legendarycloud
Offline
サーバ: Ragnarok
Game: FFXI
Posts: 209
By Ragnarok.Legendarycloud 2013-06-07 23:35:49  
Yeah, I caught that! Thank you both. :)