MV YEP_StatAllocation.js - script call for APs?

Hi all,

I have been wrecking my brain trying to find the script call to get the available and spent AP of an actor (I am doing something to the main menu to show the JP, AP, etc etc), and I just cannot find it. JP and BP from YEP's plugins are easy to get, but somehow the AP eludes me. Appreciate it if anyone can help on this? Thanks in advance! ^-^
can you link the plugin or is it one of the paid ones?
  1. Get the number of allocations for basic param ID 2 (ATK) of the party leader (index 0):
    JavaScript:
    $gameParty.members()[0].getParamAllocateTimes(2)
  2. Get the resultant boost from those allocations:
    JavaScript:
    $gameParty.members()[0].paramAllocationBonus(2)
Change the numbers 0 and 2 as appropriate. Param IDs go from 0 (MHP) to 7 (LUK) in the same order as listed in the database (e.g. parameter mutliplier from traits).

If you want to reference Ex- or Sp-params instead of basic params, add an X or S in there (uppercase for example 1, lowercase for example 2), e.g.
JavaScript:
$gameActors.actor(4).xparamAllocateBonus(0)
I.e. "get the allocation boost for Ex-param 0 (HIT) of actor ID 4". Same idea with the param IDs, just check the order they're listed in the editor~
@Andar it's a paid plugin, I believe, but here's the link to YEP's website.

@caethyril thanks! However, how about the unspend amount? What I am trying to do, is to actually create a gauge/eval for the EXP to next level, the JP amount and the AP amount in the main menu. So far, EXP and JP is a success, but AP is sadly not.
👋 Looks like it's availableAp, e.g.
JavaScript:
$gameParty.members()[0].availableAp()
There are also totalAp and spentAp methods that can be called in a similar way~
@caethyril thank you so much! It works!

For some reason, when I was trying these yesterday, it came returning as an error. I probably did a typo somewhere and did not realize it...T-T

Thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/yep_statallocation-js-script-call-for-aps.131321/