RPG Maker Forums

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?

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,551
Members
137,837
Latest member
Dabi
Top