I have some NPC's moving around in my game with autonomous movement, and I don't want them to move around while waiting from the "Wait..." Command in an event.
I found a simple script from someone with a similar problem.
Code:
class Game_Event < Game_Character
alias shaz_wait_for_message_game_event_update_self_movement update_self_movement
def update_self_movement
return if $game_message.busy? || $game_message.visible
shaz_wait_for_message_game_event_update_self_movement
end
end
That script causes autonomous movement to pause while text is displayed from a message box.
However, I also want autonomous movement to pause while waiting.
For example,
If i have an event that displays some text to the player and then waits (i.e you can't control the player until the waiting is done),
I want all NPC's to stop moving until the waiting is done
With the above script, NPC's will stop moving while text is displayed, however, when the text is done displaying and the character is waiting, all NPC's will resume movement.
I tried using
return if $game_timer.working?
instead, but that did nothing. (It was just a guess, I don't think the game_timer class is actually used for waiting)
Can anyone help me out?