silver wind
Member
Hi guys, How do I know the input number command has finished ?
I'm calling rmxp's input command from a script.
It works, but.. consider the following code:
line 4 executes before the input window even shows up
I've tried:
But the result is an endless loop, as RMXP always executes the whole code first, and then the message windows.
Is there no way around it?
If I won't do it via script, I'll be forced break my scene, go to scene_map and call a common event to do the input. Help?
I'm calling rmxp's input command from a script.
It works, but.. consider the following code:
Code:
# a method showing the input window
$game_system.show_input(x,id,8,2)
#use the data stored in $game_variables[id]
use_the_data
I've tried:
Code:
loop do
   # Update game screen
   Graphics.update
   # Update input information
   Input.update
   # Abort loop if input finished. I made message_waiting an attr_accessor
   if ! $game_system.map_interpreter.message_waiting
    break
   end
  end
But the result is an endless loop, as RMXP always executes the whole code first, and then the message windows.
Is there no way around it?
If I won't do it via script, I'll be forced break my scene, go to scene_map and call a common event to do the input. Help?