BST Spellcast Coding Question For Pet Ready Moves

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » FFXI » Jobs » Beast Master » BST Spellcast Coding Question for Pet Ready Moves
BST Spellcast Coding Question for Pet Ready Moves
 Bismarck.Nesteron
Offline
サーバ: Bismarck
Game: FFXI
user: nesteron
Posts: 14
By Bismarck.Nesteron 2012-12-13 10:09:03  
Trying to make a rule in spellcast involving changespell so my pets use a certain Ready move depending on which pet is out and also depending on weather I'm inside or outside of Dynamis, so far this is what I have.

This is so spellcast will actually use Falcorr's Fantod instead of trying to use the BLU spell, I normally just macro it seperatly using /raw /pet "Fantod" <me>.
Code
<if mode="or" type="Monster" skill="bluemagic">
      <cancelspell/>
      <command>input /raw /pet "%spell" %spelltarget</command>
</if>


The is the rule I have for the Ready moves:
Code
<if spell="Sic">
    <if pet="FaithfulFalcorr">
        <if area="Dynamis*">
            <changespell spell="Choke Breath" />
        </if>
        <else>
            <changespell spell="Fantod" />
	    </else>
    </if>
    <elseif pet="DipperYuly">
        <if area="Dynamis*">
            <changespell spell="Noisome Powder" />
        </if>
        <else>
            <changespell spell="Spiral Spin" />
        </else>
    </elseif>
</if>


I have also just tried using this:
Code
<if spell="Sic">
    <if pet="FaithfulFalcorr">
        <changespell spell="Choke Breath" />
    </if>	
    <elseif pet="DipperYuly">
        <changespell spell="Noisome Powder" />
    </elseif>
</if>


Like I said I normall just macro Fantod seperatly so I haven't tested the rule to use it yet, but seems like it should work.

The problem I am having is that (example 2) Falcorr will use Choke Breath, however, for Dipper it only comes up ...Command Line Error, when I try to use it's moves. I have to go into spellcast and change the <elseif> to just <if> for Dipper ready moves to work, but then after doing that Falcorr's will no longer work until I change Dipper back to <elseif>. and if I try to add GooeyGerard in the rules for Corrosive Ooze then none of them will work at all.

I admit that I am still very new at Spellcast and still in the extreme basics at it's coding, If anyone can help me to make this work I would appreciate it immensely.
Offline
Posts: 1682
By Xilk 2012-12-17 18:58:56  
I don't see anything wrong w/ your rules. but its hard to say from only a part of the script.

You should post the whole thing on pastebin.

I've written a similar system for ready moves, so I don't need to use more than 2 macros.

you can take a look if you are interestd.

Your text to link here...

There's a problem w/ my ready moves right now though, because spellcast is broken since the update. I should just take the rule out to check if petisvalid... thats what's not working.

from experience, I would guess you might not have you blue magic rule checking after you swap it on yuly.

I'm only speculating though, since I don't see the whole script.
 Bismarck.Nesteron
Offline
サーバ: Bismarck
Game: FFXI
user: nesteron
Posts: 14
By Bismarck.Nesteron 2012-12-20 02:56:50  
Posted my full XML to Pastebin. I currently use different groups with in-game macros to switch between them depending on if I'm fighting with the pet or letting it do all the work, weather inside or outside abyssea.

BST XML

Like I said I'm still very new to this, trying to figure it out from the ground up.
Offline
Posts: 1682
By Xilk 2012-12-20 18:43:20  
Xml looks pretty good.
It does not include the pet rules you say you are having trouble with.

I was curious if they were before or after the monster/bluemagic rule or not, but I can't tell from this.
 Bismarck.Nesteron
Offline
サーバ: Bismarck
Game: FFXI
user: nesteron
Posts: 14
By Bismarck.Nesteron 2012-12-20 19:38:50  
Ah crap, I took them out since they weren't working and forgot to add them back in before I uploaded the XML, but they were after the monster/bluemagic rule.

Just edited the pastebin and added them back in.
Offline
Posts: 1682
By Xilk 2012-12-21 08:18:06  
Bismarck.Nesteron said: »
Ah crap, I took them out since they weren't working and forgot to add them back in before I uploaded the XML, but they were after the monster/bluemagic rule.

Just edited the pastebin and added them back in.

Yeah, I'm pretty sure you want them before the monster/bluemagic rule. Since you are using the cancelspell command, It probably missing the monster/bluemagic part when it replaces w/ another spell.
 Bismarck.Nesteron
Offline
サーバ: Bismarck
Game: FFXI
user: nesteron
Posts: 14
By Bismarck.Nesteron 2012-12-21 12:06:11  
Thanks Xilk, I moved the Monster/Bluemagic rule to below the pet rules and downloaded the new spellcast.

I'll try it out when I get home later, on my Laptop sitting in a Cafe right now lol.

*EDIT* I went ahead and logged in here and tried it out, had to make a few changes, like using <if petname= instead of just <if pet= but it's working Great now. Thank you again Xilk.
Offline
Posts: 1682
By Xilk 2012-12-21 18:06:50  
congrats!
glad that worked out for you.
Log in to post.