Status turning into another

Okok, so I'm trying to figure out how to make a status effect after a set amount of time, turn into another status effect.
How it would work in my game is that it would start raining after a mini-boss, walking outside in the rain would give you the "Wet" status effect, does nothing. However, remaining Wet for over 1 minute will lead you to catch a cold and take 5% damage every so often. Wet, turning into Cold. Going indoors resets the Wet to Cold timer, and if you buy an umbrella you can avoid Wet all around.

Now, what I'm having trouble with is making it so after 1 minute of wet, you get a cold.
I've tried making common events for an "invisible timer" (shown in first pic) where if the actor is wet, the timer starts. Only problem being It just does not work, I don't know what part doesn't work, and I removed this system to try and make another where if the actor isn't Cold, and if it is Wet, then it'll turn on a "Timer Control Switch", if an actor is Cold, it'll turn off.
When the Timer Control Switch is On, another common event will activate where it'll begin a 15 second timer (Just for testing purposes, in game it would be 1 minute), and at 10 seconds it will give a warning that you will soon get a Cold, then at 0 seconds you get said cold. Problem here is that for some reason. the timer just. stops. at 14 seconds. Like it will just pause and not continue.

Any help here would be GREATLY appreciated.

1729213076074.png
1729213322593.png
1729213384204.png
So I don't see your invisible timer. I see you used the default timer event command. I am not as familiar with VXA, so I don't know if it behaves differently, but either way, that's not what the tutorial screenshot says to do.

So, first of all, we can put this all into a single parallel event. You really shouldn't have more parallel events running than is necessary. You also should never have a parallel event running without any wait frames.

So, let's move everything into your "Cold 2" common event.

You first want to check the states that are on.
Code:
If switch: [cat is inside] is ON
  Control variable [timer variable] [length of time in frames] //set how long it will take for the states to decay.
Else
  If [cat is wet]
    Control variable: [timer variable] [length of time in frames] //set the time until cat becomes cold
  End
  If [cat has cold]
    Control variable: [timer variable] [value of time between damage] //set the time until cat takes damage.
  End 
Comment: ----------------------------------
//just a comment to separate logic blocks to make it easier to read

Loop: //loop used to prevent repeating the commands above
  Wait: 1 frame //it might be better to set this higher, but 1 frame is easier to math because 60 frames = 1 second
  Control variable: [timer variable] -1 //subtract 1 from value
  If [timer variable] <= 0
    //here we are going to control what happens based on cat's state.
    If [cat is wet]
      If [cat is inside]
        //if we are inside we should remove the effect.
        Remove state: [cat is wet]
      Else
        //else, we need to upgrade the state
        Remove state: [cat is wet]
        Add state: [cat has cold]
    End
    If [cat has cold]
       Change player HP
       \\might be good to add a screen flash too, or other effect so the player knows they are being hurt. Add that effect here.
      If [cat is inside]
        Remove state: [cat has cold]
        Add state: [cat is wet]
    End
   End

I might have forgotten something, I'm also at work and don't have RM in front of me, so this might be able to be written more efficiently but hopefully gets you closer to what you are looking for.
There are a few things you might have forgotten to take into account here.

First, parallel processes are stopped while in any screen, including menu screen and battlescreen.
So it will simply not work during battles

Second, if the default timer is on and hitting zero during battle, that battle is usually aborted.

This only affects the states during battles, so if that has no difference and your states are only used on map you can ignore that.

That said, you might want to check www.himeworks.com for Tsukihime's old Ace scripts. For example her "Progressive states" script allows you to set up states that automatically progress into other states, or "conditional states" that will allow you to create formulae for state changes.
Tsukihime's scripts require some knowledge of scripting for the formulae involved if you want to utilize them fully, but if you're willing to learn that it will really help with effects like you describe.
So I don't see your invisible timer. I see you used the default timer event command. I am not as familiar with VXA, so I don't know if it behaves differently, but either way, that's not what the tutorial screenshot says to do.

So, first of all, we can put this all into a single parallel event. You really shouldn't have more parallel events running than is necessary. You also should never have a parallel event running without any wait frames.

So, let's move everything into your "Cold 2" common event.

You first want to check the states that are on.
Code:
If switch: [cat is inside] is ON
  Control variable [timer variable] [length of time in frames] //set how long it will take for the states to decay.
Else
  If [cat is wet]
    Control variable: [timer variable] [length of time in frames] //set the time until cat becomes cold
  End
  If [cat has cold]
    Control variable: [timer variable] [value of time between damage] //set the time until cat takes damage.
  End
Comment: ----------------------------------
//just a comment to separate logic blocks to make it easier to read

Loop: //loop used to prevent repeating the commands above
  Wait: 1 frame //it might be better to set this higher, but 1 frame is easier to math because 60 frames = 1 second
  Control variable: [timer variable] -1 //subtract 1 from value
  If [timer variable] <= 0
    //here we are going to control what happens based on cat's state.
    If [cat is wet]
      If [cat is inside]
        //if we are inside we should remove the effect.
        Remove state: [cat is wet]
      Else
        //else, we need to upgrade the state
        Remove state: [cat is wet]
        Add state: [cat has cold]
    End
    If [cat has cold]
       Change player HP
       \\might be good to add a screen flash too, or other effect so the player knows they are being hurt. Add that effect here.
      If [cat is inside]
        Remove state: [cat has cold]
        Add state: [cat is wet]
    End
   End

I might have forgotten something, I'm also at work and don't have RM in front of me, so this might be able to be written more efficiently but hopefully gets you closer to what you are looking for.

i did try this, unfortunately didn't work out 🙁 though thank you so much for trying it means a lot. I might try to come back to this later, but for now I just made it so after a set amount of steps taken while having the Wet ailment, you'll get a Cold so I think I'll keep it that way for now.

There are a few things you might have forgotten to take into account here.

First, parallel processes are stopped while in any screen, including menu screen and battlescreen.
So it will simply not work during battles

Second, if the default timer is on and hitting zero during battle, that battle is usually aborted.

This only affects the states during battles, so if that has no difference and your states are only used on map you can ignore that.

That said, you might want to check www.himeworks.com for Tsukihime's old Ace scripts. For example her "Progressive states" script allows you to set up states that automatically progress into other states, or "conditional states" that will allow you to create formulae for state changes.
Tsukihime's scripts require some knowledge of scripting for the formulae involved if you want to utilize them fully, but if you're willing to learn that it will really help with effects like you describe.
Ahhh I see. Thank you very much for outlining the errors in what I had done, I understand now. Progressive states does seem very interesting, I might not use it now but I'll definitely check that out and other Tsukihime scripts, (Looking over them lightly and a lot of these seem so cool, I really do wanna try using some in the future), thanks a ton!
i did try this, unfortunately didn't work out
Yep, honestly, I'm surprised none of the forum goblins called me out - I guess this is what happens when I try to write an event off the top of my head while bored at work. The logic is pretty bunk.

Anyways, for future reference "it didn't work" is not helpful.
You need to explain what didn't work, and you need to make sure you include screenshots of your events.
I guess this is what happens when I try to write an event off the top of my head while bored at work. The logic is pretty bunk.
1729294709176.gif
Anyways, for future reference "it didn't work" is not helpful.
You need to explain what didn't work, and you need to make sure you include screenshots of your events.
For sure, and if he/she copied what you wrote exactly then I can see one point where it would not work as the code is missing an 'end' at the bottom of the last if.
Otherwise it doesn't look bad. But I would have the wait at 10 frames at least, even still you explained that.

The progressive states script would work for him except he wants it by time and I think progressive states works by turns, so primarily used in battle. It might be an option to add onto it and provide a timed function on the map in addition to the small progressive capabilities made by Tsukihime for increasing states by steps.
Anyways, for future reference "it didn't work" is not helpful.
You need to explain what didn't work, and you need to make sure you include screenshots of your events.

Very sorry yes, honestly It was probably me not following the code to the exact point, (There is code for each indoors room that removes wetness), maybe that had something to do with it not working but other than that I couldn't say what *exactly* isn't working. Just in the game after 15 seconds (since i have it wait 60 frames, -1 timer variable) it isn't giving the wet status effect.
As previously stated, found an alternative that I'll probably stick with regardless. (It was made before anyone replied as a placeholder, though works fine in reality since this didn't work and I don't feel like going through the effort of trying to fix and figure out how to fix something that in game, would only be seen for a little while.)

1729311754558.png


Of course, thank you once again.

For sure, and if he copied what you wrote exactly then I can see one point where it would not work as the code is missing an 'end' at the bottom of the last if.
Otherwise it doesn't look bad. But I would have the wait at 10 frames at least, even still you explained that.

The progressive states script would work for him except he wants it by time and I think progressive states works by turns, so primarily used in battle. It might be an option to add onto it and provide a timed function on the map in addition to the small progressive capabilities made by Tsukihime for increasing states by steps.

Also, I am not a boy ^_^ , obviously its nowhere explicitly said "I'm a girl" since all you can see about my gender without going to my actual page is ambiguous, so I can't be too upset, but she/her pronouns please, thanks. I'll maybe add that to my signature or something.

Actually replying to the reply now; I did find another way to do this regardless, and I didn't exactly follow it due to other stuff (which I should have specified and acknowledge in my last response) Either way, found another way, so I'm good with what I got. Thank you very much.

Original thread: https://forums.rpgmakerweb.com/threads/status-turning-into-another.172667/