This might be a basic question, but I am having trouble figuring it out even after watching the Yanfly Youtube video on Stat Allocation and reading through the documentation.
How do you grant AP to the player to use in the first place?
For instance, under Enemy Settings, after an enemy is defeated you can grant Rewards (Experience and Gold) and you can Drop Items for the player. Am I able to to run a plugin command or script to allocate a specific amount of AP to the player in the same way that I am rewarding them Exp and Gold after they destroy an enemy? If so, could someone tell me how to do this exactly? Such as what the script or plugin command should look like, and where I am supposed to implement it?
Example: After the player defeats a bat, I want to grant him 10 XP, 10 Gold, and 10 AP. How would I grant the 10 AP?
From reading the documentation, I understand that there is the following script:
var actor = $gameActors.actor(actorId);
actor.gainBonusAp(x, classId);
But I am not sure where exactly this is supposed to be placed, and my understanding is that it is mostly about giving bonus AP. My main question though, is how do I grant specific amounts of AP to the player in the first place?
How do you grant AP to the player to use in the first place?
For instance, under Enemy Settings, after an enemy is defeated you can grant Rewards (Experience and Gold) and you can Drop Items for the player. Am I able to to run a plugin command or script to allocate a specific amount of AP to the player in the same way that I am rewarding them Exp and Gold after they destroy an enemy? If so, could someone tell me how to do this exactly? Such as what the script or plugin command should look like, and where I am supposed to implement it?
Example: After the player defeats a bat, I want to grant him 10 XP, 10 Gold, and 10 AP. How would I grant the 10 AP?
From reading the documentation, I understand that there is the following script:
var actor = $gameActors.actor(actorId);
actor.gainBonusAp(x, classId);
But I am not sure where exactly this is supposed to be placed, and my understanding is that it is mostly about giving bonus AP. My main question though, is how do I grant specific amounts of AP to the player in the first place?