Good way of affecting the parameters temporary

Hello, I want to write a Script, where each Actor can equip a familiar. The familiar will change the Actor Stats.

So for example you can predefine some familiars like this:

FAMILIAR = {  :name   => [atk: 20, def: 20]  :name2 )=>[p_def: 5]}So if an Actor "equips" the familiar with :name his atk and def stats will be boosted by 20 absolute.

If the actor "equips" :name2 his defense will be boosted by 5 percent.

This is the theory, now Iam wondering what is the best way to change the parameters from an actor?

I think if you can guide me where to look how the states work in the Vanilla Script I can figure It out myself.

Thanks for every help.
The easiest way would be to just have familiars use the accessory slot (you can rename it in the database).

Give the stats to the familiars and call it a night.
Agreed with Mouser. The accessory slot may simplest way to implement it.

However, if you insist to keep on scripting, you should find the way how do you equip it. Then, edit how default parameter is handled in vanilla script.

class Game_Actor alias familiar_atk atk def atk return familiar_atk + your_familiar_atk endendI hope you get the idea
Thank you both for your replies.

Problem is solved
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/good-way-of-affecting-the-parameters-temporary.26352/