Unskippable text

Hello guys, first of all i know it is a very old thread tho but i need your help about something. You see i want the "victorious text" when you beat a battle to be unskippable until the victory music is finished. So i found this thread: https://forums.rpgmakerweb.com/index.php?threads/solved-creating-unskippable-text.8589/ and tried to apply Galv's script but
i couldn't. I have insert it like this:
Spoiler
class Window_Message < Window_Base
alias galv_gpanda_update_show_fast update_show_fast
def update_show_fast
return if $game_switches[21]
galv_gpanda_update_show_fast
end
end


So, when im trying to make an any kind of trigger event, im turning on the switch that i inserted on the script (in this case is 21),
then im making a show text and the text is again skippable in the game...So am i doing something wrong or what?
Can you guys help me with the battle text,music issue?
i want the "victorious text" when you beat a battle to be unskippable until the victory music is finished, or easier to make a wait command in this text with \|\|\| and apply the script's switch to this text to work right, but i dont know how to add this command in this text....can you guys help me to find a solution pls?

RpG LoVeR, please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.


Next time edit your first thread instead.

Also, this is the wrong forum for this.

I've moved this thread to RGSSx Support. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/unskippable-text.77769/