Rep_ex_always and a timer

Started by , Wed 16/02/2005 00:36:11

Previous topic - Next topic

monkey0506

As previously noted I am trying to allow certain keypresses during speech.  Some of these include volume and text speed controls (dependant on values of sliders changed when these keys are pressed).  The GUIs these sliders are stored on are popup modal, and are supposed to turn off after 100 game loops.  But, using repeatedly_execute_always, I can't get this to work right.  During speech repeatedly_execute is not called at all, so the method I was using to handle it doesn't work (storing a value of 100 to an int, "timer", and decreasing the value by 1 every time rep_ex was run until it reached 0, and then the GUI would turn off).  So, is there any way of preforming this function? (I did try using SetTimer and IsTimerExpired, but I'm guessing that these are not updated during speech?)  Any help would be greatly appreciated.

Gilbert

One possible solution, don't setup the GUI's as popup modals, change them to normal instead.

If you really want the GUI to block some actions so they won't be executed while the GUI's on, just do a classic if clause to check for it (like using IsGUIOn() or check IsTimerExpired()), or checking for, and don't do anything if the GUI's on.

Radiant

I think you'll have to stay away from the 'display' command, since it blocks everything (up to and including rep_ex_al).

SMF spam blocked by CleanTalk