How do I get a message box to go away quicker?

Post » Sun May 01, 2011 9:15 pm

So I have this message box that appears when I exit the interior of the Imperial Slave Ship. The thing that bothers me is that this message box stays on screen for what seems like a whole minute. I just want it to appear for like, 5 seconds and then disappear. What do I need to add to this to get it to do that?


Begin ICMQ_Guardshort statefloat timershort buttonif ( MenuMode == 1 )    returnendifif ( OnActivate >= 1 )    returnendifif ( state == 0 )    if ( GetDistance Player < 110 )        set state to 1        MessageBox "text goes here."    endifendifif ( state == 1 )    set button to GetButtonPressed    if ( button == 0 )    set state to -1    elseif ( button == 1 )    set state to -1    endifendifendifif ( CharGenState == -1 )    disable"ICMQ_ship guard 05"->disableendifendifEnd

User avatar
TASTY TRACY
 
Posts: 3282
Joined: Thu Jun 22, 2006 7:11 pm

Post » Mon May 02, 2011 12:42 am

I'm pretty sure the time for the message on-screen is not something that can be altered.
You could always add a button to the message:
MessageBox "text goes here." "Ok"

This will pause the game when it pops up, but the message will disappear as soon as you click on OK.
User avatar
Chavala
 
Posts: 3355
Joined: Sun Jun 25, 2006 5:28 am

Post » Sun May 01, 2011 5:11 pm

The time that the mesagebox without buttons stays on screen directly depends on text's length. Make the message shorter - it will disappear faster.
User avatar
Dawn Farrell
 
Posts: 3522
Joined: Thu Aug 23, 2007 9:02 am

Post » Sun May 01, 2011 2:50 pm

Only three messageboxes can be displayed at the same time. You can 'push' out your current messagebox at any time of your choosing by using a timer to trigger the successive display of three empty messageboxes. I am not certain how long the last will linger since my application was to push out an old message to make way for a new one to display, but it will be very short if not unnoticeable. Do not thank me - this was ManuUser's suggestion some years ago.
User avatar
Zach Hunter
 
Posts: 3444
Joined: Wed Aug 08, 2007 3:26 pm

Post » Mon May 02, 2011 1:28 am

I'm pretty sure the time for the message on-screen is not something that can be altered.
You could always add a button to the message:
MessageBox "text goes here." "Ok"

This will pause the game when it pops up, but the message will disappear as soon as you click on OK.


Thanks. That worked just fine. Didn't think about the button thing.
User avatar
kirsty joanne hines
 
Posts: 3361
Joined: Fri Aug 18, 2006 10:06 am


Return to III - Morrowind