• 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 Conquest 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.

Timer still counts down during battles

Backburner26

Pokemon Lavender Spirit Creator
  • 41
    Posts
    9
    Years
    So im using the Controll Timer command in RPGMaker XP and the timer pauses when I enter a battle, Is there any way to have the timer keep running while I am in a battle?
     
    Last edited by a moderator:
    It looks to me like the battle system in unmodified Essentials has the countdown going even during battle (there's even code in here to abort a battle if the timer hits zero while in battle).

    Are you using a different battle system? What version of Pokemon Essentials are you using?

    EDIT: Upon further investigation, it looks like the method I was looking at isn't actually ever called (because battle scenes are never assigned to $scene). Furthermore, the thing it sets to abort the battle seems to be dummied out as well...

    What you can do is go to the PokeBattle_Scene script section and update the following function:

    Code:
      def pbGraphicsUpdate
        partyAnimationUpdate
        @sprites["battlebg"].update if @sprites["battlebg"].respond_to?("update")
        Graphics.update
        # Add the following lines:
        # Update timer
        $game_system.update
        # If timer has reached 0
        if $game_system.timer_working and $game_system.timer == 0
          # Abort battle
          @battle.pbAbort
        end
      end

    Note: I haven't tested this code myself.

    See how that works for you.
     
    Last edited:
    Back
    Top