Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 How to make check if there's a message window?
#3
(10-27-2019, 12:06 AM)kyonides Wrote: You could try something like...

$game_temp.message_window_showing = false

...or add a snippet...

Code:
class Window_Message
 alias :forum_request_win_mess_up :update
 def update
   forum_request_win_mess_up
   return unless @contents_showing and $game_temp.common_event_id > 0
   if Input.trigger?(Input::BUTTON) or Input.trigger?(Input::ANOTHER_BUTTON)
     terminate_message
   end
 end
end

There you need to replace BUTTON and ANOTHER_BUTTON with the actual names of the buttons you will use. You don't know what are their names!? Then Take a look at the window that opens whenever you press F1! There you can find all of them.

I dunno if it's compatible with UMS and some other scripts I have, also the keys are from a keyboard script. So it's more simple if i simply check if there's a message window showing.
(This below is my signature, it's not part of the post/message)

I'm a male and italian indie game developer, spriter and musician.
I'm currently working on my own indie game, called Our Destiny.
Follow it on it's GameJolt page: https://gamejolt.com/games/ourdestinyofficial/449988

----Contacts----
Twitter: https://twitter.com/Andrea87Sky
SoundCloud: https://soundcloud.com/skycraft-team-official/tracks
YouTube: https://www.youtube.com/channel/UCjPA_e7...subscriber
Reply }


Messages In This Thread
RE: How to make check if there's a message window? - by Pelip - 10-27-2019, 10:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [REQUEST] Anyone know how to make a professional looking world map? fgsfds 15 23,647 04-11-2015, 06:17 AM
Last Post: JayRay
  Any way to make events trigger other events? MechanicalPen 3 6,247 04-01-2013, 11:54 PM
Last Post: MechanicalPen
  How to make a Final Fantasy styled cutscene JWCaisa 3 7,175 06-15-2012, 02:40 PM
Last Post: Kain Nobel
  [Ask]how to make our own Tileset ? felicalexa 2 5,758 05-26-2012, 04:11 AM
Last Post: MetalRenard
  how to make an event touch another event mangamaniacs2064 2 5,834 08-24-2011, 01:55 PM
Last Post: RosyPosy
  How do i make a trap? kikonami123 5 7,853 03-24-2010, 11:04 PM
Last Post: kikonami123



Users browsing this thread: