Thank you, I solved my problem, about the color change, it would be about the text in the window. It would be interesting to put different colors for different characters, thanks for the help friend.
I tested it on 21.1 and it seems to be working well, there's just one problem: you have to be careful when putting together the events, because if the player doesn't meet any requirements, such as not having the right number of Pokémon in the party or in case of restrictions on Like, the script...