Solo Vs Party Gearswap

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
フォーラム » FFXI » Jobs » Dancer » Solo vs Party Gearswap
Solo vs Party Gearswap
Offline
Posts: 281
By Galkapryme 2020-04-02 14:01:34  
All,

This applies to all jobs, but I'm most interested in DNC at the moment. As it is possible to select your macrobook based on your subjob or weapon

(example
Code
-- Select default macro book on initial load or subjob change.
function select_default_macro_book()
    -- Default macro set/book
    if player.sub_job == 'WAR' then
        set_macro_page(3, 9)
    elseif player.sub_job == 'NIN' then
        set_macro_page(1, 9)
    elseif player.sub_job == 'THF' then
        set_macro_page(2, 9)
    else
        set_macro_page(1, 9)
    end
end


Is it possible to do this same thing based on whether you are in a party or soloing? I ask because the split second between choosing <stal> as the target and <me> as the target can make a big difference in battle.
 Shiva.Arislan
Offline
サーバ: Shiva
Game: FFXI
user: Arislan
Posts: 1052
By Shiva.Arislan 2020-04-02 15:42:16  
https://docs.windower.net/addons/gearswap/reference/#alliance-and-party
Offline
Posts: 318
By Meeble 2020-04-02 15:46:07  
If you mean solo without trusts, then yes:

This checks to see if P1 exists, and can customize your sets accordingly.
Code
function select_default_macro_book()
    local party = windower.ffxi.get_party()
    if party.p1 == nil then
      if player.sub_job == 'WAR' then
          set_macro_page(3, 9)
      elseif player.sub_job == 'NIN' then
          set_macro_page(1, 9)
      elseif player.sub_job == 'THF' then
          set_macro_page(2, 9)
      elseif player.sub_job == 'THF' then
          set_macro_page(2, 9)
      else
          set_macro_page(1, 9)
      end
    else
      if player.sub_job == 'WAR' then
          set_macro_page(3, 9)
      elseif player.sub_job == 'NIN' then
          set_macro_page(1, 9)
      elseif player.sub_job == 'THF' then
          set_macro_page(2, 9)
      elseif player.sub_job == 'THF' then
          set_macro_page(2, 9)
      else
          set_macro_page(1, 9)
      end
    end
end