MV Is there a way to use formula in a state to add talent points dependent on actor stats with Frogboy's talent core?


Is it possible to set talent bonus dependent on actor's stats using just one state?

I was doing this with a very none intuitive way.

An idealized state would give actor.agi / 2 amount of acrobatic talents, at 14 agi the actor would get 7 acrobatics. However I cannot seem to find a math formula for this, so what I did was to make multiple states.

For example, it would require 7 states to cover the bonus from 2~14 agi, and if agi goes higher it'd need even more states. Eventually the autopassive states went overload (I think I had around 30) which made opening the project load much longer.
Can you explain the context a bit? Why would a state be giving points?

It seems like you would want the skill or item or whatever to be just giving the points directly, no?

It's not clear why there's any state involved, never mind a passive one, never mind multiple.
Can you explain the context a bit? Why would a state be giving points?

It seems like you would want the skill or item or whatever to be just giving the points directly, no?

It's not clear why there's any state involved, never mind a passive one, never mind multiple.

For games like tabletop rpg, stats normally would affect related skills positively or negatively if the stats are too low.

Using 10 as the base, character who gets 12 or 13 agi would get a +1 bonus on talents that use agi, and actor with 8 to 9 agi would get a -1 penalty on related talent. The passive state formula would look like this.


<Custom Passive Condition>

if (12 <= user.agi && user.agi <= 13) {
condition = true;
} else {
condition = false;
}

</Custom Passive Condition>

<TalentBonus: +1 acro, +1 lock, etc>

If the character has agi increased, the actor would use better versions of states, so +2acro at 14~15, +4 acro at 18~19. Vice versa, if the character has agi lowered, the actor got worse at related skills. Talent point abbreviations can also be used in damage formula and equip core's notetag's item custom parameter.

I made states for stats from 4~20 and eventually the game loading time becomes exceeding long.

About 10 autopassive states like these would increase loading time (which is a complete black screen that doesn't use the loading.png image) by 3 seconds. If madewithMV is on, it either freezes or finishes loading after around 70 secounds.
Hmmm, do you have to use states?
You can get an actor's stat with a script: $gameActors.actor(id).stat

Then your "tabletop rpg modifier" is [rounded down]: ('Actor's stat' - 10)/2

And you can add that as a bonus to the talent checks (I understood that you can add a bonus variable to them)?
Hmmm, do you have to use states?
You can get an actor's stat with a script: $gameActors.actor(id).stat

Then your "tabletop rpg modifier" is [rounded down]: ('Actor's stat' - 10)/2

And you can add that as a bonus to the talent checks (I understood that you can add a bonus variable to them)?
Using autopassive states is required in my case because talent points get modified by character's current stats, and the talent points are used in equip core custom parameter to modify actor's current stats.

For example, when dual wielding, state buffing default atk parameter would affect both hand's damage, but using talent core and equip core can make a formula that add bonus to specified weapon type so it can make only a weapon gets the buff when wielding two weapons. This would involve dual wield plugin usages making the situation even more bloated so I try to stay on original question.
Using autopassive states is required in my case because talent points get modified by character's current stats, and the talent points are used in equip core custom parameter to modify actor's current stats.
I and @rpgLord69 have been trying to explain that they're not. If you're going to ask people for help, you should think about the answers they give you 😉

There's no calculation you could do in a state that you can't do directly in the damage formula.

using talent core and equip core can make a formula that add bonus to specified weapon type so it can make only a weapon gets the buff when wielding two weapons.
You can do that with no plugins.

If your Daggers are weapon type 1 (default setup) and you only want them to add half your Str bonus when dual wielding, you can do:
Code:
let dam = your_normal_damage_formula; if (a.isActor() && a.isWtypeEquipped(1) && a.weapons().length > 1) dam += (a.atk-10)/4; dam

I understand that damage is not the only place you might reference Talent Points - you'd be much better off figuring out the places where the actor's parameters might change and inserting the included plugin commands from the documentation to change the associated Talents there.

If you're basing this off of D&D, stat changes should be infrequent, so it shouldn't be hard to track the places it's happening.

If you need help figuring out how to do that, people are glad to assist, but you need to consider that the way you thought to do this in the first place is not the best way rather than telling your help they're wrong.
For the weapon damage, I've figured out a way using yanfly base parameter then put 4 passive states on selected weapons.
Originally I used equip core to get damage number, however if the calculation gets a bit more complex it lags poorly.
Originall I made something like this
<Custom Parameters>
atk = user.knife - user.unarmed + (user.agi - 10) / 2 * user.slash + (user.mat - 10) / 2 * user.strpen
</Custom Parameters>
The engine could only read more simplified math with no lag like atk = user.knife - user.unarmed + user.slash - user.strpen so I was looking for a way to do the math outside the notefaq.
I forgot base parameter could add flat stats where I could put corresponding talent points change to it, MV vanilla trait modify stats by percentage which doesn't play well with talent point changes. edited: tabletop rpg sometimes have stats increase with odd number (level up, tome, etc.) which is not high enough to modify skills as well.
I think the problem is solved, thanks.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-use-formula-in-a-state-to-add-talent-points-dependent-on-actor-stats-with-frogboys-talent-core.165342/