Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

I set a timer, in RPG Maker XP, and when it's 0:00 battles don't happen!

How can I avoid this? I want battles to happen even while timer is 0:00...There should be some script to avoid battles being interrupted when a timer is 0:00... Please I really need your help because I have  deadline, I'm really looking forward to your reply.
 
Yes it's the default timer. I put it countin 3 minutes during which there are fights, but when it reaches zero I leave it as it is. What happens is that all the battles, battles are normal encounters, with the battle system that comes with the game, are automatically interrupted when the timer in the corner is 0:00. I don't want to make the 0:00 disappear from the corner, I just want the battles to happen while the 0:00 is on the corner. It's probably something in the script that tells the game to interrupt battles when the timer is 0:00... Hope you can help me I'm trying to explain the best way I can.
 
So, you set random encounters in the map properties, turn on timer, when timer reaches zero, no matter how many designated steps you walk, random encounters don't execute?

Correct me if I'm wrong.
 
Not exactly, random encounters begin but end right after they begin. It's not just my problem, it will happen in your game too. Just start a new project, start a timer with 0:00 and set random encounters in the area. You'll see what happens when encounters occur. As it happens to everyone it must be something in the RPG Maker XP script that you can change...

Off Topic: How can I get rid of a Trojan Horse it's fucking up my computer and the anti-virus doesn't remove it. It came by my USB Pen and now this is slow as hell...
 

poccil

Sponsor

Here's the culprit:  in Scene_Battle, lines 244-247

Code:
    if $game_system.timer_working and $game_system.timer == 0
      # Abort battle
      $game_temp.battle_abort = true
    end

Just remove those lines of code.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top