Item Search
     
BG-Wiki Search
Page 247 of 328 FirstFirst ... 197 237 245 246 247 248 249 257 297 ... LastLast
Results 4921 to 4940 of 6548
  1. #4921
    Campaign
    Join Date
    Jul 2007
    Posts
    6,633
    BG Level
    8

    I'm very ignorant when it comes to programming. Only language I used is Pascal/Delphi and that's over 15 years ago so I hardly remember anything.
    I have a question about the use of variables in Spellcast's XMLs.
    For example, can you do something like this below? (using a very simplified syntax of course, I just want let the idea behind it pass)
    Let's say X is a variable.

    Code:
    X:=CurrentSet
         equip precast set=WSset
         perform WS
         equip aftercast set=X
    This way after an action that swaps you to a specific gearset, you will be able to the set you had equipped before that, no matter what it was.
    I doubt this is possible but still I wanted to ask.

    Otherwise it's probably possible to have X change according to conditions, for example buffactive, something like:
    Code:
    if buffactive=1 X=set1
    else X=set2
    
    if spell=ws1
         equip precast set=wsset
         equip aftercast set=X
    /if
    This way the rule will make you change set before you perform a certain action, and return to X after the action is completed.
    X will be different according to the buffactive condition. If that buff is active it will return to X1, otherwise if it's not it will return you to X2.
    I assume I would have to code the X condition inside the "Variables" section of the XML.
    How am I supposed to do it?

  2. #4922
    Nidhogg
    Join Date
    Jul 2008
    Posts
    3,746
    BG Level
    7
    FFXIV Character
    Seraphus Highwynn
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    Using Motenten's SCHv2 XML(since v3 is way too laggy) and I want to insert a rule from Yugl's RDM XML for Impact which when /ma "Impact" us used, it'll equip the Twilight Cloak, wait a sec, then begin casting and lock the body on until aftercast while switching to regular nuke gear.

    This is my BLM rule:
    Spoiler: show

    <elseif type="BlackMagic">
    <castdelay delay="0.03" />
    <equip when="Precast" set="FastCast">
    <rring>Icesoul Ring</rring>
    </equip>

    <if Skill="DarkMagic">
    <equip when="Midcast" set="Dark-$Arts" />
    <xi:include href="Mote-Include3.xml" xpointer="//include[@name='ObiRingCape-DarkMagic']/*" />
    </if>
    <elseif Skill="ElementalMagic">
    <if spell="*Helix">
    <equip when="Midcast" set="Helix" />
    </if>
    <else>
    <if Spell="*IV|*V" NotBuffActive="Addendum: Black|Enlightenment">
    <if Spell="Stone*">
    <ChangeSpell Spell="Stone III" />
    </if>
    <elseif Spell="Water*">
    <ChangeSpell Spell="Water III" />
    </elseif>
    <elseif Spell="Aero*">
    <ChangeSpell Spell="Aero III" />
    </elseif>
    <elseif Spell="Fire*">
    <ChangeSpell Spell="Fire III" />
    </elseif>
    <elseif Spell="Blizzard*">
    <ChangeSpell Spell="Blizzard III" />
    </elseif>
    <elseif Spell="Thunder*">
    <ChangeSpell Spell="Thunder III" />
    </elseif>
    </if>

    <equip when="Midcast" set="Nuke" />
    </else>

    <!-- All JA layers -->
    <equip when="Midcast" set="$PenuryLayer|$EbullienceLayer|$PerpetuanceLay er|$KlimaformLayer" />

    <xi:include href="Mote-Include3.xml" xpointer="//include[@name='ObiRingCape-ElementalMagic']/*" />
    </elseif>
    <elseif Skill="EnfeeblingMagic">
    <if Spell="Dispel|Blind">
    <equip when="Midcast" set="Int" />
    </if>
    <elseif Spell="Sleep*|Gravity|Bind">
    <equip when="Midcast" set="Int|HasteCast" />
    </elseif>
    <else>
    <equip when="Midcast" set="Int" />
    </else>
    </elseif>
    </elseif>


    This is the rule that I want to insert:
    Spoiler: show

    <if spell="Impact" notBuffactive="Chainspell|Alacrity|Celerity">
    <castdelay delay="1.5" />
    <equip when="precast" set="FastCast-Impact" />
    <equip when="precast">
    <main>Chatoyant Staff</main>
    </equip>
    </if>


    and
    under ele magic it has:

    <elseif spell="Impact">
    <equip when="Precast" set="Elemental-Impact" setgroup="$Area-$QuickResist" />

    Not sure how to format since Mote's rule doesn't use elseif for elemental magic
    </elseif>




    Also I want to make a separate equip set for Kaustra so that when I cast Kaustra it switches to my Nuke-Kaustra set but not sure how to exclude kaustra from regular dark magic gear swap and format an <else> for kaustra specific gear swap.

    P.S I use the equip Icesoul Ring in black magic rule because I have icesoulringx2 and sometimes it won't swap in both of them, thinking they're the same item in the same slow, unless I put that /equip rule there.

  3. #4923
    Campaign
    Join Date
    Jul 2007
    Posts
    6,633
    BG Level
    8

    What's your darkmagic rule? If you have a rule like <if skill="darkmagic"> then you can simply turn it into a <if skill="darkmagic" notspell="Kaustra"> and it will make Kaustra an exception that you will have to handle with another specific and external rule.
    Like for example <if spell="kaustra">
    At least I do it that way in my XML and it works just fine.

  4. #4924
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    Quote Originally Posted by Sechs View Post
    I'm very ignorant when it comes to programming. Only language I used is Pascal/Delphi and that's over 15 years ago so I hardly remember anything.
    I have a question about the use of variables in Spellcast's XMLs.
    For example, can you do something like this below? (using a very simplified syntax of course, I just want let the idea behind it pass)
    Let's say X is a variable.

    Code:
    X:=CurrentSet
         equip precast set=WSset
         perform WS
         equip aftercast set=X
    This way after an action that swaps you to a specific gearset, you will be able to the set you had equipped before that, no matter what it was.
    I doubt this is possible but still I wanted to ask.

    Otherwise it's probably possible to have X change according to conditions, for example buffactive, something like:
    Code:
    if buffactive=1 X=set1
    else X=set2
    
    if spell=ws1
         equip precast set=wsset
         equip aftercast set=X
    /if
    This way the rule will make you change set before you perform a certain action, and return to X after the action is completed.
    X will be different according to the buffactive condition. If that buff is active it will return to X1, otherwise if it's not it will return you to X2.
    I assume I would have to code the X condition inside the "Variables" section of the XML.
    How am I supposed to do it?
    You can do that np. Take a look at my XMLs within the Completed XMLs Thread to see how.

  5. #4925
    Campaign
    Join Date
    Jul 2007
    Posts
    6,633
    BG Level
    8

    Will do! Thanks

  6. #4926
    Chram
    Join Date
    Sep 2007
    Posts
    2,526
    BG Level
    7
    FFXI Server
    Fenrir

    @Sechs: Just to clarify, you can do your second example easily enough, and that's how most the XMLs in the completed thread behave. Doing the first example would be cumbersome. It's doable, but not recommended.

  7. #4927
    Fake Numbers
    Join Date
    Jan 2010
    Posts
    79
    BG Level
    2

    I'm currently using akreys war spellcast. How would I go about adding a group for voidwatch

    Would it just be as simple as adding:
    <group name="Voidwatch" inherit="Abyssea-R">
    sets here

    and adding this in the rules
    <if BuffActive="Voidwatcher">
    <var cmd="set Group Voidwatch" />
    </if>

  8. #4928
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    Code:
    <if BuffActive="Voidwatcher">
    <var cmd="set Area Voidwatch" />
    </if>
    That would be the correct rule. Otherwise, what you said is correct.

  9. #4929
    Yoshi P
    Join Date
    Dec 2006
    Posts
    5,360
    BG Level
    8
    WoW Realm
    Arthas

    This is what I have in my rules for obis/twilight cape:

    <if Advanced='"%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement"'>
    <equip when="midcast">
    <waist lock="t">$%SpellElementObi</waist>
    <back lock="t">Twilight Cape</back>
    </equip>
    </if>
    it works fine for weather, but doesn't work for day. Any ideas?

  10. #4930
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    That looks correct, but if not working, try using parenthesis.

    (Spell Element = Weather Element) OR (Spell Element = Dy Element)

  11. #4931
    Yoshi P
    Join Date
    Dec 2006
    Posts
    5,360
    BG Level
    8
    WoW Realm
    Arthas

    Thanks, that worked. I'm pretty sure it used to work without them so I dunno what happened.

    How would I word it if I want it specifically for light day/weather? (for white wind, healing breeze, etc.)

  12. #4932
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    <if mode="OR" DayElement="Light" WeatherElement="Light">

    Do these get the bonus on cures though?

  13. #4933
    Yoshi P
    Join Date
    Dec 2006
    Posts
    5,360
    BG Level
    8
    WoW Realm
    Arthas

    I figured they would, but after testing breeze on sch/blu, it doesn't seem that's the case. I get no bonus with light, or even wind weather and the corresponding obi. Wild carrot and pollen don't benefit either for that matter. I guess weather/day just don't effect blu cures?

  14. #4934
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    I would have thought that light cures get the benefit since they get the detriment from what I recall, but I never paid much attention to them.

  15. #4935
    Yoshi P
    Join Date
    Dec 2006
    Posts
    5,360
    BG Level
    8
    WoW Realm
    Arthas

    I gave that a quick test while I was still on sch/blu and nope, none of them are affected by dark weather + obi either. White magic cures are working as expected (-/+ 10%) with dark/light weather and obi.

  16. #4936
    Aja
    Aja is offline
    Relic Weapons
    Join Date
    Jul 2008
    Posts
    384
    BG Level
    4
    FFXI Server
    Asura

    Can I use "$engaged" as a baseset?

  17. #4937
    xXNyteFyreXx420Sharingan
    Join Date
    May 2009
    Posts
    3,709
    BG Level
    7
    FFXI Server
    Fenrir

    yes

  18. #4938
    New Spam Forum
    Join Date
    Jul 2010
    Posts
    186
    BG Level
    3
    FFXI Server
    Bahamut

    hmmm.. just in time for the changes I guess...
    I've been re-writing my bst xml to use Motenten's include files.
    I'm not sure what I'm doing wrong though, as none of the custom triggers are working.
    Even the ones from the keybinds, like the manually update trigger bound to F12...
    I get a message like Magic spell appears Incorrectly formatted.
    I couldn't find where this message is coming from.
    I didn't see it in the include anywhere, nor is it the message from the game if you do input an improperly formated spell.

    Any Idea what I'm doing wrong?
    This is the xml so far. (not finished)
    http://pastebin.com/ECtBqkaQ

  19. #4939
    Chram
    Join Date
    Sep 2007
    Posts
    2,526
    BG Level
    7
    FFXI Server
    Fenrir

    1) I revised some of the keybind stuff, such as the manual update being "/ma Update .Manual". You still have <if SpellTargetRaw="Manually"> in your xml, so it won't provide the proper <addtochat> line (though it should still update).

    2) "Magic spell appears Incorrectly formatted." -- I have no idea. Double-check your init.txt and make sure it matches what's in the revision notes file? You can also paste the bind directly into the console, if you want to test live in game. I'd need exact steps to reproduce to figure out the problem.

  20. #4940
    Melee Summoner
    Join Date
    Mar 2010
    Posts
    25
    BG Level
    1
    FFXI Server
    Caitsith

    "Magic spell appears Incorrectly formatted." is an Itemizer message.

Page 247 of 328 FirstFirst ... 197 237 245 246 247 248 249 257 297 ... LastLast

Similar Threads

  1. Spellcast Shop Thread
    By Yugl in forum FFXI: Everything
    Replies: 232
    Last Post: 2014-03-18, 04:47
  2. time spent on ls events, helping friends and your own time
    By freewind in forum FFXI: Everything
    Replies: 6
    Last Post: 2005-09-06, 16:42