Trying to set an actor trait that scales with the actor's level.

Hoy, I'm attempting to create an "ability" system where each character has a permanent ability that scales with the actor's level. For example, my Cleric will have the ability, "Recover x% of HP every turn". I would like "x" to follow the formula (5 + LV/10).

As far as I can tell, the base product does not allow me to create such a trait. If I am wrong, or there is a plugin that would allow this system to work, please let me know.
You can't do this by default, unless you go a very convoluted route with creating all of the abilities/states/whatever and some complex parallel events that constantly check all of the actors' levels and replace abilities.

Whereas you can do it very simply with some plugins. For example, what you describe for the cleric would use VisuStella's Skills and States Core for access to passive states.

You'd put a passive state on the cleric and give that state the notetag:
Code:
<JS HP Slip Heal>
heal = (5 + user.level) / 1000 * user.mhp;
</JS HP Slip Heal>

Note that the formula you provided will not actually do noticeable healing for quite a while, unless you start off with high numbers for HP. At level 1 you're healing .6% of your HP, so you'd need to have 167 HP in order to regain just 1.

I don't know what the rest of the abilities you have in mind are like, but I suggest reading through the notetags offered by Skills and States Core and Battle Core, they can probably do most of what you might want.
<JS HP Slip Heal>
heal = (5 + user.level) / 1000 * user.mhp;
</JS HP Slip Heal>

Note that the formula you provided will not actually do noticeable healing for quite a while, unless you start off with high numbers for HP. At level 1 you're healing .6% of your HP, so you'd need to have 167 HP in order to regain just 1.

Ok, I didn't write my formula correctly. I intended for the Cleric's ability to have a 5.1% heal at level 1 and a 15% heal at level 100. Rewriting the formula you provided for my intentions gave me:

Code:
Code:
<JS HP Slip Heal>
heal = (0.05 + (user.level / 1000)) * user.mhp;
</JS HP Slip Heal>
Whereas you can do it very simply with some plugins. For example, what you describe for the cleric would use VisuStella's Skills and States Core for access to passive states.

You'd put a passive state on the cleric and give that state the notetag

I'm not sure I understand how to do this properly. I have installed the entire VisuStella Sample Game Project plugin collection, and I see the passive effects of Skills and States Core. Below is how I have my Regeneration state and Cleric class set up. I know this is wrong from playtesting, but I'm not sure exactly WHY it's wrong based on your information and what I read on yanfly.moe

1711773336956.png
1711773361629.png


I also tested it with your original heal = (5 + user.level) / 1000 * user.mhp; formula just to confirm it wasn't my bad math again, and that did not work either.
I'm not sure exactly WHY it's wrong based on your information and what I read on yanfly.moe
Your actor doesnt have the state. Putting a state rate trait on a class doesnt give actors of that class that state
1711776675460.png
Your actor doesnt have the state. Putting a state rate trait on a class doesnt give actors of that class that state
View attachment 300252

Ok, so my state is indeed working as intended now. I feel like I have the knowledge to make half of the abilities I have planned now that this works.

To expand on this, I am also planning on implementing a system where active party members can "equip" the abilities of reserve party members and have two simultaneous abilities. I figured this would be easy to implement, and it is. I created a new Equipment Type called "Support" and added a Support type equipment with the passive state in its notes. Equipping this on another character did indeed work.

The problem here is twofold. I would like to have the shared ability scaled based on the ability's original user rather than the user who has the support equipped. Replacing user.level with Erin.level (Erin is the name of the actor with the ability) did not work. I'm struggling to find a way to specifically target Erin's level in the formula.

Secondly, I would ideally like the Support equips to only work when the original ability holder is out of the active slots of the party. It should be pretty easy to prevent a character from equipping their own Support (creating an armor type for each character and giving every character every support armor type but their own). I'm just not sure how I can either force a party member out when a Support is equipped or prevent a Support from being equipped when a party member is in the top slots.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-set-an-actor-trait-that-scales-with-the-actors-level.167306/