• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Is there a script that pauses all events/autotiles/animations

Rayd12smitty

Shadow Maker
  • 606
    Posts
    13
    Years
    • Seen Feb 21, 2016
    Is there a script I can call the will pause/lock all events/movement in general on the screen? If not, can someone point me in the right direction to make one?

    Thanks

    Edit

    I figured it out if anyone else wants/needs this.

    In Scene_Map I did this
    Code:
    def updateMaps
        for map in $MapFactory.maps
          map.update if $game_switches[106]==false
        end
        $MapFactory.updateMaps(self)
      end

    I added the if statement.
     
    Last edited:
    I using this script and it works fine fo me. :)
    Spoiler:
     
    I guess you could stop updating all the events, if that's what you're aiming for. This can be done by changing the condition in line 421 in Game_Map_ (or just Ctrl-Shift-F search for "event.update").

    Old: "if in_range?(event) or event.trigger == 3 or event.trigger == 4"
    New: "if !$game_switches[69] && (in_range?(event) or event.trigger == 3 or event.trigger == 4)"

    Now if you want to freeze all events just set the switch with id 69 on. You can change this number, but make sure nothing else in the game uses this switch. Also, this will only stop the events from walking, but you'll still be able to talk with them. Hope this helps!
     
    I guess you could stop updating all the events, if that's what you're aiming for. This can be done by changing the condition in line 421 in Game_Map_ (or just Ctrl-Shift-F search for "event.update").

    Old: "if in_range?(event) or event.trigger == 3 or event.trigger == 4"
    New: "if !$game_switches[69] && (in_range?(event) or event.trigger == 3 or event.trigger == 4)"

    Now if you want to freeze all events just set the switch with id 69 on. You can change this number, but make sure nothing else in the game uses this switch. Also, this will only stop the events from walking, but you'll still be able to talk with them. Hope this helps!

    Thanks so much! This is a great start. Now I don't suppose you would know how to do the same with fogs and auto tiles?
     
    Back
    Top