Help with Stat Allocation

MagicFool64

Villager
Member
Joined
Feb 9, 2019
Messages
9
Reaction score
0
First Language
Italian
Primarily Uses
RMMV
I'm trying to use Yanfly's Stat Allocation plugin. I want to make my characters have initial AP, because at the beginning the game asks you which character stat do you want to upgrade. Like at the beginning of some games like Shin Megami Tensei. Can you help me?
 

xDRAGOONx

Veteran
Veteran
Joined
Jan 22, 2019
Messages
219
Reaction score
173
First Language
English
Primarily Uses
RMMV
You can use the following script calls to give actors extra AP to use;

Add Ap to current total:

var actor = $gameActors.actor(actorId);
actor.gainBonusAp(x, classId);


Replace 'actorId' with the ID of the actor you wish to affect.
Replace 'x' with the amount of AP you wish to apply to the actor.
Replace 'classId' with the ID of the class you wish to give AP to.
You can keep 'classId' as 0 to make it affect the actor's current class.

Set Ap to a specific value:

var actor = $gameActors.actor(actorId);
actor.setBonusAp(x, classId);


Replace 'actorId' with the ID of the actor you wish to affect.
Replace 'x' with the amount of AP you wish to set the actor's AP to.
Replace 'classId' with the ID of the class you wish to set the AP to.
You can keep 'classId' as 0 to make it affect the actor's current class.

Plugin Command:

OpenStatAllocate x

This will open up the stat allocation menu for the party member whose
index is equal to x. 0 is the first slot. So,

OpenStatAllocate 0

will open the stat allocate menu for the first actor in the database.

1589334546026.png
 

MagicFool64

Villager
Member
Joined
Feb 9, 2019
Messages
9
Reaction score
0
First Language
Italian
Primarily Uses
RMMV
You can use the following script calls to give actors extra AP to use;

Add Ap to current total:

var actor = $gameActors.actor(actorId);
actor.gainBonusAp(x, classId);


Replace 'actorId' with the ID of the actor you wish to affect.
Replace 'x' with the amount of AP you wish to apply to the actor.
Replace 'classId' with the ID of the class you wish to give AP to.
You can keep 'classId' as 0 to make it affect the actor's current class.

Set Ap to a specific value:

var actor = $gameActors.actor(actorId);
actor.setBonusAp(x, classId);


Replace 'actorId' with the ID of the actor you wish to affect.
Replace 'x' with the amount of AP you wish to set the actor's AP to.
Replace 'classId' with the ID of the class you wish to set the AP to.
You can keep 'classId' as 0 to make it affect the actor's current class.

Plugin Command:

OpenStatAllocate x

This will open up the stat allocation menu for the party member whose
index is equal to x. 0 is the first slot. So,

OpenStatAllocate 0

will open the stat allocate menu for the first actor in the database.

View attachment 143442
Thank you
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top