Jump to content


Photo

BRD GearSwap Help~

GearSwapBardBokura

    2 replies to this topic

    #1 Zigbar

    Zigbar

      Advanced Member

    • Members
    • PipPipPip
    • 43 posts

      Posted 20 June 2014 - 03:28 AM

      I've been racking my brain for the last 2 hours and can not figure out why my Midcast is only equiping sets.Midcast. It's supposed to be equiping sets.Midcast.Wind or sets.Midcast.WindBuff based on if it's a buffing song or debuffing song.. I'm using Bokura_BRD.lua with everything related to Gjallarhorn, Carnwenhan, and Daurdabla changed to Eminent Flute, Legato Dagger, and Terpander respectively.

       

      The file is apparently too long to post and I'm not permitted to upload an .lua file. Here's a Pastebin link: http://pastebin.com/snB2R2DG



      #2 sdahlka

      sdahlka

        Advanced Member

      • Members
      • PipPipPip
      • 324 posts

        Posted 20 June 2014 - 06:59 AM

        oops

        its because you have this

        equip(equipSet)

         

        to equip the proper set you need to use equipSet = in your equip_song_gear function

        like this

        function equip_song_gear(spell)
                if Terpander == 'ON' then
                        equipSet = sets.Precast.Terpander
                else
                        if TerpaSongs:contains(spell.english) then
                                equipSet = sets.Precast.Terpander
                                add_to_chat(158,'Terpander: [ON]')
                        else
                                if spell.target.type == 'MONSTER' then
                                        equipSet = sets.Midcast.Wind
                                        if string.find(spell.english,'Finale') then equipSet = sets.Midcast.Finale end
                                        if string.find(spell.english,'Lullaby') then equipSet = sets.Midcast.Lullaby) end
                                else
                                        equip(sets.Midcast.WindBuff)
                                        if string.find(spell.english,'March') then equipSet = sets.Midcast.March end
                                        if string.find(spell.english,'Minuet') then equipSet = sets.Midcast.Minuet end
                                        if string.find(spell.english,'Madrigal') then equipSet = sets.Midcast.Madrigal end
                                        if string.find(spell.english,'Ballad') then equipSet = sets.Midcast.Ballad end
                                        if string.find(spell.english,'Scherzo') then equipSet = sets.Midcast.Scherzo end
                                        if string.find(spell.english,'Mazurka') then equipSet = sets.Midcast.Mazurka end
                                        if string.find(spell.english,'Paeon') then equipSet = sets.Midcast.Paeon end
                                end
                        end
                end
        end
         

        its all because this is after your coding for songs

        equip(equipSet)

         

        you might ask why equipSet ={} can be changed by another function this is because its a global variable not local variable

         

        to denote a local variable you would put it like this

        local equipSet ={}



        #3 Zigbar

        Zigbar

          Advanced Member

        • Members
        • PipPipPip
        • 43 posts

          Posted 20 June 2014 - 02:36 PM

          It's still doing the exact same thing even with the above changes.

           

          I forgot to mention in the original post; sets.Precast.Terpander is also being skipped even when my Terpander toggle is [ON].







          Also tagged with one or more of these keywords: GearSwap, Bard, Bokura

          1 user(s) are reading this topic

          0 members, 1 guests, 0 anonymous users