Question about states

Suppose I have two states applied to an actor and both states were applied on the same turn, but one was applied before the other. The first state lowers the actor's magic parameter by 10% (Makes it 90%) and the second state lowers the actor's magic parameter by 40% (Makes it 60%). The actor's parameter would only be lowered by 40% right? It wouldn't lower 40% of 90% of the original value or something weird like that right? Thank you for any responses.

Some context: My current project uses "artificial magic". The idea is that artificial magic comes in the form of "spheres" which contain preconfigured "instructions" for generating a spell and requires an input of the user's MP in order to do so. Story-wise, traditional magic is different from artificial magic in the sense that traditional magic involves skillfully shaping and altering the properties of one's own aether/MP in real time, while artificial magic augments the entire process and preforms the aether conversion with a machine. Artificial magic can be bought extremely early and can be inherently used by every party member of the game, and when you equip a sphere you will have access not only to the spell the sphere contains, but the artificial magic skill type as well. This magic is very convenient, as it would make sense given the story premise of artificial magic. To balance this without straight-up making artificial spells inherently weaker than traditional spells, artificial spells will have a higher MP cost as well as an effect which cuts either the user's magic parameter or max MP parameter by a small percentage with each use of artificial magic. The story explanation would be that there is evidence that sphere-use strains (and possible damages) the bodily nodes that aether flows from, causing them to seal up over the course of a battle. As much as I would love to use a simple stackable states script to do this, the battle system script(s) I am running are not compatible with them. I've found a solution in the form of a Himeworks script that adds states when another one is already applied. The only downside is that there is no apparent means to remove states with this script, so I am trying to figure out how accumulated debuffs are calculated.
The order in which they're applied doesn't matter. The value is not changed as soon as something happens. When something wants to know what parameter is, the engine gets the original value, then checks all the things that could adjust it, which would include the two applied states.

It would be super easy to check what happens here. Just create an event on a map that applies the two states to the actor, then use a Control Variables command to retrieve the parameter, and show it in a text box.
I'm pretty sure the end result would by 54% the original magic stat
It's multiplicative, so here is the answer.
Screenshot_1421.jpg

(in case if it isn't clear enough, it means the final value is 54%)
The order of the state being applied is irrelevant.
@Shaz Thank you for telling me that, I'm going to start doing that. I had no idea control variables could be used like that, I never would have thought of it lol.
@TheoAllen
@Oddball
Thank you so much for helping me. So if I understand what your telling me, then if I have four states that each make the magic stat 90%, 80%, 70%, 60%, then the total magic stat percentage reduction would be 30.24%?
@Solr - yeah, for multiplier traits/features, the game takes the value of each and multiplies them to get the final value to be applied.
So if I understand what your telling me, then if I have four states that each make the magic stat 90%, 80%, 70%, 60%, then the total magic stat percentage reduction would be 30.24%?
Yes
@Solr - yeah, for multiplier traits/features, the game takes the value of each and multiplies them to get the final value to be applied.
Ah ok thank you then. I guess I'll make 4 states that each reduce the magic stat by 5% progressively. So 95%, 90%, 85%, 80%. So the total magic reduction value would be 58.14%. I'd make the percentage closer to 50, but I'm not very good at working with math backwards you see, especially with anything involving exponentially increasing values. Thank you for all the help. 🙂
@Solr
If your query is fully resolved, please Report your post and ask for the thread to be closed. Mods might not see a post, but they will see a Report.
Thanks
@Solr check the display of the trait you give to the state. They always have a mathematical sign with them, either + or *.

+ means an additive trait with a base of 0% - HIT% for example is one such trait, which is why usually a class gives around +95% HIT to an actor and deleting that would result in a lot of misses.

* means a multiplicative trait with a base of 100% - each of these traits will be multiplied with the base, with lower percentages reducing the total value and higher percentages increasing it.

And that is NOT exclusive to states, every trait of the same type is calculated when the value is needed, from actor and class traits to equipped objects to inflicted states.

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/question-about-states.114172/