Solo Vs Party Gearswap

Language: JP EN DE FR
users online
Forum » FFXI » Jobs » Dancer » Solo vs Party Gearswap
Solo vs Party Gearswap
Offline
Posts: 357
By Galkapryme 2020-04-02 14:01:34
Link | Quote | Reply
 
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
Server: Shiva
Game: FFXI
user: Arislan
Posts: 1052
By Shiva.Arislan 2020-04-02 15:42:16
Link | Quote | Reply
 
https://docs.windower.net/addons/gearswap/reference/#alliance-and-party
Offline
Posts: 414
By Meeble 2020-04-02 15:46:07
Link | Quote | Reply
 
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
Log in to post.