How to have states affect other states

Hello everyone, So I'm trying to implement this feature in my game that allows a state to affect the chances of inflicting another state. Here is an example: Say i have two states called 'Shock' and 'Wet'. If the player uses a weapon or item that can inflict Shock, it has a 40% chance to be applied. But if the player uses a weapon or item that can apply the state 'Wet', the chances of the state 'Shock' being applied are increased to 90%. I feel like there is a way to add this with what the engine provides, but i tend to overthink stuff, so im having trouble seeing how to do it. Can anyone help me out?
You can just put a trait on Wet that increases the State Rate of Shock.
trait state rate

give the state "wet" a trait that increases the state rate for "SHOCK".

you'll just have to be carefull with the mathematics because the trait is multiplicative
You can just put a trait on Wet that increases the State Rate of Shock.
Thanks, like i said i overthink things. i thought it was gonna be way more complicated👍
trait state rate

give the state "wet" a trait that increases the state rate for "SHOCK".

you'll just have to be carefull with the mathematics because the trait is multiplicative

Thanks, like i said i overthink things. i thought it was way more complicated👍
You're welcome. For future reference, there's no point to posting the same thing multiple times. You can use the Quote or Reply buttons to quote multiple people in one post, you can tag people with @Name, or you can just type the post generally without quoting anyone specifically.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-have-states-affect-other-states.145837/