How can I make the dialogue change with the character level on RPG Maker MV?

Hello! This is my first post, I hope to get an answer ASAP! T_T
I tried my best, but I'm going to give up trying and I'll just ask you guys.

[The game is in Italian bc it's my mother tongue. Here there is the meaning of some words, please help me...
-interruttore di controllo= switch
-se= if
-altro= else
The other words are pretty similar, like livello= level]

I want that magic girl to say "Good boy" (it's just a stupid line, ikr) when my character passes level 5.
If I test the game, if I start with a level higher than 5 then the girl says "good boy" but if I first talk to her when I'm at level 1 she starts with the first dialogue, when I talk to her again after passing level 5 she stops talking to me!
In the fourth page I made a copy of the first page to make it cyclical somehow... In other events it worked out well, but I can't tell...
What on earth did I do wrong? I'm such a noob, UGH.
Also, I'm really sorry but I don't know how to make a spoiler span. I'm just adding the spoiler code but I don't know what will happen when I'll post it.
Code:
<span>Spoiler</span>
PLEASE help me, I've been struggling with this thing the whole day!
You have three switches:
  • fata pozioni - page 2 condition - turned on by pages 1 & 4; never turned off
  • fata pozioni 2 - page 3 condition - turned on by pages 1 & 4; never turned off
  • fata pozioni again - page 4 condition - turned on by page 2; never turned off
Page conditions are checked from the highest page first: since fata pozioni again never gets turned off, that means it will be the active page forever after. You could get rid of that switch (and page 4), and instead turn OFF fata pozioni at the end of page 2. 🙂

However, there's no need for separate event pages here; you can have it all on one page, e.g.
Code:
◆Control Variables:#0010 Level = Level of Harold
◆If:Level ≥ 5
  ◆Text:None, Window, Bottom
  :    :You look like an experienced adventurer!
  ◆
:Else
  ◆Text:None, Window, Bottom
  :    :Why are you talking to me?
  ◆
:End
Event pages are generally used for situations where you need the event's appearance or movement to change. This is just a quick "say this or that" check. 😤

Spoiler: How to add a spoiler
You can add a spoiler to your post by clicking the ... button in the toolbar of the text box and choosing "Spoiler". Alternatively, see here:
your problem is that you needlessly split the event into multiple pages. It would probably have worked if you had done everything on a single page.

the problem here is page priority. If multiple pages are "active", only the page with the highest condition counts. And you never reset any switch, which means that the switch turned on at the beginning stays on, keeping that page for Level <5 active even after the condition level >5 is now true.

If everything were on one page, there would be no need for switches and the engine would not remember what happened before.

edit: ninja'd
You have three switches:
  • fata pozioni - page 2 condition - turned on by pages 1 & 4; never turned off
  • fata pozioni 2 - page 3 condition - turned on by pages 1 & 4; never turned off
  • fata pozioni again - page 4 condition - turned on by page 2; never turned off
Page conditions are checked from the highest page first: since fata pozioni again never gets turned off, that means it will be the active page forever after. You could get rid of that switch (and page 4), and instead turn OFF fata pozioni at the end of page 2. 🙂

However, there's no need for separate event pages here; you can have it all on one page, e.g.
Code:
◆Control Variables:#0010 Level = Level of Harold
◆If:Level ≥ 5
  ◆Text:None, Window, Bottom
  :    :You look like an experienced adventurer!
  ◆
:Else
  ◆Text:None, Window, Bottom
  :    :Why are you talking to me?
  ◆
:End
Event pages are generally used for situations where you need the event's appearance or movement to change. This is just a quick "say this or that" check. 😤

Spoiler: How to add a spoiler
You can add a spoiler to your post by clicking the ... button in the toolbar of the text box and choosing "Spoiler". Alternatively, see here:

Thank you so much! I was just overdoing with switches ad pages... And thanks to you I got something new! I've never understood how and why you should turn off the switches, now it makes sense! At the end I chose to do everything in a single page, but it's good to know you can do it in both ways :LZScheeze:
And now I think I can add spoilers too! TY 😅
your problem is that you needlessly split the event into multiple pages. It would probably have worked if you had done everything on a single page.

the problem here is page priority. If multiple pages are "active", only the page with the highest condition counts. And you never reset any switch, which means that the switch turned on at the beginning stays on, keeping that page for Level <5 active even after the condition level >5 is now true.

If everything were on one page, there would be no need for switches and the engine would not remember what happened before.

edit: ninja'd

Thank you!! The thing is.. I've never learnt how to turn off the switches so I didn't thought about it! Thanks to both your advices I did everything in a single page and it prefectly worked out :LZSjoy:
The next thing I'll read about will be the turn-off of the switches.
😅

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-make-the-dialogue-change-with-the-character-level-on-rpg-maker-mv.119215/