How do I avoid repetitive notifications after status is finished (Step 14 Tutorial)

Recently finished Step 14 Tutorial about Damaging Floors. I created a skill that makes every actor in the party to avoid damage from damaging floors and the tutorial ended with that. But I have no clue why the game show this redundant text:

Captura de pantalla 2023-10-29 033757.png


Any way to fix this and to show just one text message like "Your party is vulnerable to floor again" or so?

Thanks in advance!
I have no clue why the game show this redundant text:
Because you told it to 😛

You put a message on your state that displays when the state is removed.

You made a skill that puts that state on each actor in your party.

Therefore, the state is on each actor in your party and will be removed from each actor in your party.

Therefore, the message you typed in will be displayed when the state is removed from each actor in your party.

There are ways to work around this which are more advanced than the tutorial.

You could take the message off of your state and have your skill run a common event which activates a parallel event. That parallel event can count your steps and, when it hits 100, remove the state from all actors and display one generic message.

If you don't care whether actors have individual vulnerability (that is, some people take floor damage and others don't), you could not use the floor damage tiles but place events on them which damage you on player touch. Those events can have a conditional branch to check the party leader for the presence of a state. Then you'd only put the state on one actor, so you only get one removal message.

Or you could use a plugin like Yanfly's Floor Damage which uses JavaScript in the calculation of how much damage the floor does, and make it be 0 if the party leader has your protection state (or any party member, or however you want it to work).
Because you told it to 😛

You put a message on your state that displays when the state is removed.

You made a skill that puts that state on each actor in your party.

Therefore, the state is on each actor in your party and will be removed from each actor in your party.

Therefore, the message you typed in will be displayed when the state is removed from each actor in your party.

There are ways to work around this which are more advanced than the tutorial.

You could take the message off of your state and have your skill run a common event which activates a parallel event. That parallel event can count your steps and, when it hits 100, remove the state from all actors and display one generic message.

If you don't care whether actors have individual vulnerability (that is, some people take floor damage and others don't), you could not use the floor damage tiles but place events on them which damage you on player touch. Those events can have a conditional branch to check the party leader for the presence of a state. Then you'd only put the state on one actor, so you only get one removal message.

Or you could use a plugin like Yanfly's Floor Damage which uses JavaScript in the calculation of how much damage the floor does, and make it be 0 if the party leader has your protection state (or any party member, or however you want it to work).

Ngl I really laughed at the beggining of the comment. lol

Now I see why the tutorial approach is the way it is haha I still have not the knowledge to even do the first option. :oops:

I was told not to use a lot of plugins while I'm learning the basics, so I'll bookmark your comment for later in time.

For now, I'll try to understand the first option and try to replicate ^^'

Thank you so much for taking the time to comment!
You could take the message off of your state and have your skill run a common event which activates a parallel event. That parallel event can count your steps and, when it hits 100, remove the state from all actors and display one generic message.

I spent a couple of hours trying to make the first option to work and I somehow did... But I guess I don't know how to make variables work yet.

It works perfectly the first time, but not the following times as the steps are more the 100. How do I make it count to 100 steps and not just the step number 100?

Captura de pantalla 2023-10-29 193014.png
The parallel process requires switch 3 to be on in order to run. Presumably you turn that on somewhere else in the game. As part of the message, it turns switch 3 off. The parallel process event will never run again unless you turn switch 3 on again from somewhere else outside of this event, and it will never display the message again because every step you take is above 100 and you'll never hit exactly 100 again in that playthrough.
The parallel process requires switch 3 to be on in order to run. Presumably you turn that on somewhere else in the game. As part of the message, it turns switch 3 off. The parallel process event will never run again unless you turn switch 3 on again from somewhere else outside of this event, and it will never display the message again because every step you take is above 100 and you'll never hit exactly 100 again in that playthrough.

I made that switch in order to make the variable run because when it isn't there, the variable does not count to 100 Idk why. The switch is turned on whenever the Skill to get "floor damage immunity" is casted. When the Event is ended the steps stops at 100. I guess I should find a way to reset the count (maybe?)
I made that switch in order to make the variable run because when it isn't there, the variable does not count to 100 Idk why. The switch is turned on whenever the Skill to get "floor damage immunity" is casted. When the Event is ended the steps stops at 100. I guess I should find a way to reset the count (maybe?)

You've missed the entirety of the last part of my reply. The reason it stops at 100 is because 100 steps is all you're ever checking. The next step you take after you dismiss the message, your steps are 101. Then 102, then 103...they will never be equal to 100 again, so why would the event ever show the message again?
so in order to make it work, you set the stepcounter to 0 as well as the switch
if you want to use it ^^

as Trihan said, once its 100, it show the message, than never again.
>= 100 only checks if above it (which is saver) as you reset the counter to 0
and turn of the switch anyway.
so in order to make it work, you set the stepcounter to 0 as well as the switch
if you want to use it ^^

as Trihan said, once its 100, it show the message, than never again.
>= 100 only checks if above it (which is saver) as you reset the counter to 0
and turn of the switch anyway.

I think I'm getting the point (slowlearner here sorry). So how do I reset the counter to 0?

Btw, I managed to get a solution on my own but it seems a bit problematic on the long run since it modifies the step count every time the skill is casted. I would really appreciate if someone could check it:

Captura de pantalla 2023-10-29 204015.png
I would use 2 variables.

variable 100 = steps taken.
variable 101 = 0 + steps taken.

so if you reset variable 101 to 0, you check variable 101 for the steps 100 or more.

if steps is 10000, than variable 101 = 0 and count + 1 for every step to 100.
which is the best approach and the savest way (in my opinion).

there might be a better approach, but that depends on your skill mechanic
when you use it so you can combine it nicely 🙂
I would use 2 variables.

variable 100 = steps taken.
variable 101 = 0 + steps taken.

so if you reset variable 101 to 0, you check variable 101 for the steps 100 or more.

if steps is 10000, than variable 101 = 0 and count + 1 for every step to 100.
which is the best approach and the savest way (in my opinion).

there might be a better approach, but that depends on your skill mechanic
when you use it so you can combine it nicely 🙂

How would you do the variable 101? I can't wrap my hear around it, sorry. Would you go "Control variables> Add 0 to Variable 100"? O am I missing something?

I mean, I know how it would work but I am failing in being able to replicate it haha. Sorry to bother and thanks for your patience.

(The skill I made in the tutorial was a spell that every time it is casted, it grants immunity to floor damage for 100 steps.)
as simple as I did variable 3 to variable 4.
only variable 4 (in my sample is set to 0).

when you call your skill, step counter is 0 + steps taken again till 100+
to set it back to 0.
counter.png
For this approach you will need two events, as I said before.

One is a common event attached to the skill.

In that common event, you do:
Control Variables -> Variable 1 -> Game Data -> Steps
Control Switch -> Switch 1 -> ON

Then you need a parallel event with the condition of Switch 1 ON. It has:
Wait 6
Control Variables -> Variable 2 -> Game Data -> Steps
Control Variables -> Variable 2 -> - Variable 1
Conditional Branch -> Variable 2 >= 100
- Change State on every party member to take off the floor damage state
- Show Text "You're vulnerable to floors again."
- Control Switch -> Switch 1 -> OFF

The key logic is you need to use two variables to be tracking whether you've gone 100 steps from when you started.

Obviously, you can change the numbers for variables 1 & 2 and switch 1.
For this approach you will need two events, as I said before.

One is a common event attached to the skill.

In that common event, you do:
Control Variables -> Variable 1 -> Game Data -> Steps
Control Switch -> Switch 1 -> ON

Then you need a parallel event with the condition of Switch 1 ON. It has:
Wait 6
Control Variables -> Variable 2 -> Game Data -> Steps
Control Variables -> Variable 2 -> - Variable 1
Conditional Branch -> Variable 2 >= 100
- Change State on every party member to take off the floor damage state
- Show Text "You're vulnerable to floors again."
- Control Switch -> Switch 1 -> OFF

The key logic is you need to use two variables to be tracking whether you've gone 100 steps from when you started.

Obviously, you can change the numbers for variables 1 & 2 and switch 1.

Oooohh... So I was wrong since the beginning. I was doing everything in a common event with a parallel trigger condition. Then, where do I attach the parallel event then? That's the part I'm missing.
Then, where do I attach the parallel event then? That's the part I'm missing.

Then you need a parallel event with the condition of Switch 1 ON.

There's no such thing as "attach" a parallel event, only turning it on and off as @Trihan discussed in Post #5. If you had followed the step-by-step instructions I typed out in my previous post, it would've worked for you.

If this requires more advanced understanding than you have of events right now, it's fine to put a pin in it until you complete more tutorials and learn how the different kinds of events work.

Or you can just open up that portion of the instructions and read them, or look up events tutorials...there are tons on YouTube.
Okay then, I'll give it another try and if I can't make it work I'll leave it as it is and keep learning.

Thanks for your time.
I'm not sure why nobody has pointed this out yet but you don't need multiple events or two variables or anything like that. There's a much simpler solution.

After setting your variable to step count, modulus it with 100 as the operand. Then check whether the value is 0 rather than 100, as it will end up being 0 every time the step count is divisible by 100.
I'm not sure why nobody has pointed this out yet but you don't need multiple events or two variables or anything like that. There's a much simpler solution.
Good call, but how do you do that without multiple events?

You'd need a common event attached to the skill that sets the variable and turns on the switch for the second, parallel event that monitors said variable.

Also, I don't think that's quite the right sequence of things?

After setting your variable to step count, modulus it with 100 as the operand. Then check whether the value is 0 rather than 100, as it will end up being 0 every time the step count is divisible by 100.

We don't want it to go off at increments of 100 steps in the game, we want it to go off 100 steps after the skill was used. That might be from Steps 1,428 - 1,528.
Good call, but how do you do that without multiple events?

You'd need a common event attached to the skill that sets the variable and turns on the switch for the second, parallel event that monitors said variable.

(Frankly, I forget that the event command can handle modulo 😛 )
That part seemed to be working fine before, so I figured OP would just turn the switch on however he was doing so before asking for help with this part. 😛
@Trihan I think I was editing while you were responding, so to re-ask:
Also, I don't think that's quite the right sequence of things?

We don't want it to go off at increments of 100 steps in the game, we want it to go off 100 steps after the skill was used. That might be from Steps 1,428 - 1,528.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-avoid-repetitive-notifications-after-status-is-finished-step-14-tutorial.162478/