In Need Of AMAZING War Spellcast Q.q

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
フォーラム » FFXI » Jobs » Warrior » In need of AMAZING war spellcast q.q
In need of AMAZING war spellcast q.q
 Bismarck.Olebisque
Offline
サーバ: Bismarck
Game: FFXI
user: olebisque
Posts: 28
By Bismarck.Olebisque 2011-09-28 13:46:07  
I'd love to add restraint up/down sets to my spellcast and if I could do a inside and outside of abyssea setup. If anyone knows how to add those your help would be much appreciated!
 Odin.Tsuneo
Offline
サーバ: Odin
Game: FFXI
user: Tsuneo
Posts: 2767
By Odin.Tsuneo 2011-10-10 04:36:56  
Bismarck.Olebisque said: »
I'd love to add restraint up/down sets to my spellcast and if I could do a inside and outside of abyssea setup. If anyone knows how to add those your help would be much appreciated!
For having separate sets for inside and outside of Abyssea you'll want something like this in your xml.
Code
<if area="Abyssea*">
                <if type="Weaponskill">
                    <if spell="Ukko's Fury">
                        <equip when="precast" set="Ukkosabyssea" />
				        <equip when="aftercast" set="WarGaxefight" />
                        </if>
 
                    </if>
					
            </if>
                <elseif notArea="Abyssea*">
						<if spell="Ukko's Fury">
                        <equip when="precast" set="Ukkos" />
				        <equip when="aftercast" set="WarGaxefight" />
                        </if>
                    </elseif>
 Bismarck.Gael
Offline
サーバ: Bismarck
Game: FFXI
user: Gael
Posts: 172
By Bismarck.Gael 2011-10-10 04:47:04  
Code
<if area="Abyssea*">
  <if spell="Ukko's Fury">
    <equip when="precast" set="Ukkosabyssea" />
    <equip when="aftercast" set="WarGaxefight" />
  </if>
</if>
<else>
  <if spell="Ukko's Fury">
    <equip when="precast" set="Ukkos" />
    <equip when="aftercast" set="WarGaxefight" />
  </if>
</else>



This doesnt work ? Why do you need to add a elseif ?
 Cerberus.Quipto
Offline
サーバ: Cerberus
Game: FFXI
user: Quipto
Posts: 608
By Cerberus.Quipto 2011-10-10 05:40:42  
Bismarck.Gael said: »
Code
<if area="Abyssea*">
  <if spell="Ukko's Fury">
    <equip when="precast" set="Ukkosabyssea" />
    <equip when="aftercast" set="WarGaxefight" />
  </if>
</if>
<else>
  <if spell="Ukko's Fury">
    <equip when="precast" set="Ukkos" />
    <equip when="aftercast" set="WarGaxefight" />
  </if>
</else>



This doesnt work ? Why do you need to add a elseif ?
It does work, I believe. It just gives you a warning on how it's bad coding practice or something like that. Having the undefined <else> tag and what not.
 Bismarck.Gael
Offline
サーバ: Bismarck
Game: FFXI
user: Gael
Posts: 172
By Bismarck.Gael 2011-10-10 05:59:39  
ok thanks
Offline
Posts: 182
By Entourage 2011-10-10 12:23:08  
<if buffactive="Visitant*">

works as well, if the other one didn't for you. you can also add "Potency" and the like to the same line to save space if you really want to heh
 Fenrir.Nightfyre
Offline
サーバ: Fenrir
Game: FFXI
user: Nightfyre
Posts: 11680
By Fenrir.Nightfyre 2011-10-10 12:40:10  
Cerberus.Quipto said: »
It does work, I believe. It just gives you a warning on how it's bad coding practice or something like that. Having the undefined <else> tag and what not.
Huh? You don't define else tags, they pass if the previous condition returns false...

Technically both examples posted are bad coding practice, but not for that reason. They're both organized poorly. You'd want to write it like this:
Code
<if spell="Ukko's Fury">
	<if area="Abyssea*">
		<equip when="precast" set="Ukkosabyssea" />
	</if>
	<else>
		<equip when="precast" set="Ukkos" />
	</else>
	<equip when="aftercast" set="Wargaxefight" />
</if>

<if type="weaponskill"> wouldn't do anything at all unless you're 1) compartmentalizing and 2) handling sets for multiple weaponskills, in which case you'd optimally be using <elseif type="weaponskill"> instead and putting it outside the code I showed above. It's also cleaner to handle aftercast all at once, so what you should do is do away with <equip when="aftercast" set="Wargaxefight" /> within that section and handle your aftercast with the more common status check method at the end of the xml.