• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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.

[Eventing Question] pausing all other events

  • 172
    Posts
    8
    Years
    • Seen Sep 6, 2022
    So in my events sometimes other npcs will wander into whats happening in my game. I noticed later as I was making more trainer events that the pbTrainerIntro script is used for trainer battles to pause all other events, so I started throwing that into my events, to pause everything, I just have it use a trainer type that has no music attatched to it. But it seems really weird to use a command like that just for every event. I was just wondering if theres another command that's actually meant to just pause all the other events on the map until I turn it off or say otherwise. But one that I can also use in my events that allow me to move other events around if I tell them to. just so the free roaming npc dont get in the way
     
    Well, opening up pbTrainerIntro, it appears that pbGlobalLock is what is used to freeze all of the events. This only blocks the move routes set up in the side box of the page, and you can still move events around with move commands. It kind of needs a wait for completion though, else you don't really see the effect.

    At the end of the event, you do need a pbGlobalUnlock, else the events get stuck in place.
     
    Well, opening up pbTrainerIntro, it appears that pbGlobalLock is what is used to freeze all of the events. This only blocks the move routes set up in the side box of the page, and you can still move events around with move commands. It kind of needs a wait for completion though, else you don't really see the effect.

    At the end of the event, you do need a pbGlobalUnlock, else the events get stuck in place.

    awesome, that's exactly what I was looking for and it works perfectly. thank you!
     
    Back
    Top