User Tools

Site Tools



acr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
acr [2022/08/25 08:06] anyoneacr [2024/07/23 22:20] (current) ace
Line 54: Line 54:
     name = "Batman",     name = "Batman",
 } }
 +
 +-- Regions table, lists which game regions are supported (1 - NA, 2 - CN, 3 - KR)
 +profile.region = { 1, 2, 3}
  
 -- Create a classes table, to specify which classes this profile can be used for. -- Create a classes table, to specify which classes this profile can be used for.
Line 59: Line 62:
     [FFXIV.JOBS.NINJA] = true,     [FFXIV.JOBS.NINJA] = true,
     [FFXIV.JOBS.ROGUE] = true,     [FFXIV.JOBS.ROGUE] = true,
-+} 
 + 
 +-- Add a tags string to indicate whatever you want when class options are displayed 
 +profile.tags = "assistonly;grindmode;dungeons"
  
 -- The Cast() function is where the magic happens. -- The Cast() function is where the magic happens.
Line 170: Line 176:
         AceLib.LoadCombatProfiles()         AceLib.LoadCombatProfiles()
 end end
 +
 +</code>
 +
 +==== Public API Functions ====
 +
 +<code lua>
 +
 +local t = ACR.GetClassOptions(class (int) (default Player.job),pvp (bool) (default false))
 +--returns a table "t" filled with options for the desired class
 +/*
 +{
 +  [1] = {
 +      name = "AProfile",
 +      tags = ""
 +  },
 +  [2] = {
 +      name = "BProfile",
 +      tags = ""
 +  },
 +}
 +*/
 +
 +local b, n = ACR.IsActive()
 +--returns b (bool) (true if any ACR is active), n (string) (name of active profile or "" if inactive)
 +
 +ACR.OpenProfileOptions()
 +--executes the currently selected profiles OnOpen() event if applicable
  
 </code> </code>
acr.1661414784.txt.gz · Last modified: 2022/08/25 08:06 by anyone