The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX Ace => Topic started by: Zylos on July 23, 2013, 04:33:47 AM

Title: [VXA] Is there a quick way to force a text window to close?
Post by: Zylos on July 23, 2013, 04:33:47 AM
The scenario is this: you are on a timer, and if the timer reaches zero, it explodes and goes the screen to go white regardless of whatever you were doing. However, if you happen to have a text window or an equivalent open on the screen before the explosion, it will remain on the screen even after the timer goes off and will not clear until you specifically do so yourself.

How can one forcibly and immediately close a text window from a screen via another event?
Title: Re: [VXA] Is there a quick way to force a text window to close?
Post by: &&&&&&&&&&&&& on July 23, 2013, 06:48:00 AM
Only thing I can think of is

Code: [Select]
\^

"Do not wait for input after displaying text." -RMVXA tool tip
Title: Re: [VXA] Is there a quick way to force a text window to close?
Post by: Zylos on July 23, 2013, 01:11:50 PM
That's an in-text code that you have to write in ahead of time into your text message, meaning that it'd only work if you specifically have a text message that gets cut off like an NPC being interrupted. What I need is simply for one event to shut down another even if it's in mid-text.
Title: Re: [VXA] Is there a quick way to force a text window to close?
Post by: D&P3 on July 23, 2013, 02:46:33 PM
Something like this I guess, not tested

Code: [Select]
class Game_Interpreter
  def exit_window()
    $game_message.clear()
    event_id = $game_map.interpreter.event_id
    $game_map.events[event_id].refresh()
    @list = []
  end
end