Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
djskagnetti

Simple Timer Conundrum

Question

Greetings. First post. Thanks for viewing =)

 

I am not using any outside scripts or anything other than generic RMXP. I have not modified the Ruby script in any way.

 

Anyways, I have a large area that is filled with 7 or 8 troops of enemies. They attack at around 20 steps, simple generic stuff. I also have 4 bosses in the area. When you kill one, all disappear and a timer shows up. The timer shows up for different intervals based upon which boss you kill. If you kill the weakest, it's 5 minutes. If you kill the strongest it's 12:30 minutes. (7:30 for second weakest, 10 for second strongest)

 

The timer runs down to zero and the bosses return to the screen. You can then choose which one you want to kill again. It is basically a 'hunting area', a place where the enemies are slightly stronger than the enemies in adjacent areas, but give more xp and gold than the 'normal' areas. The timer uses a parallel process that has a conditional branch that when the timer hits 0, the bosses return. It works splendidly. No problems with that.

 

So you kill a boss, get some phat xp and lewt, and then go out to kill some typical mob troops whilst you wait for the bosses to show themselves once again. But!!! - here's the problem - If the timer runs out While you are in a battle with a typical troop mob, it simply stops the battle and you return to the 'walking around the map' screen. I want it to Not do this. Here is the event page setup that I have. I will post the 2nd hardest boss's event pages.

 

 

Page 1 (Event pic: Big orange dragon, Trigger: Action)

@>Battle Processing: Orange Dragon

@>Control Switches: [0121: GREYFARR Bosses]=ON

@>Control Timer: Startup (10min, 0 sec.)

@>

 

Page 2 (Switch 0121: GREYFARR Bosses is ON (no event pic) Trigger: Parallel Process)

@>Conditional Branch: Timer 0 min 0 sec or less

@>Control Timer: Stop

@>Control Switches: [0121: GREYFARR Bosses]=OFF

@>

: Else

@>

: Branch End

@>

 

All the bosses have the exact same event pages except for the 'battle processing', 'event picture' and 'control timer' bits, which correspond to whichever boss you fight and how long it's timer is.

 

What should I add to make it that when the timer hits 0 and the bosses return to the map you don't get booted out of the battle you are currently in?

 

Thank you very much for your time and help.

-dj.sk

Edited by djskagnetti

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Page 1 (Event pic: Big orange dragon, Trigger: Action)

@>Battle Processing: Orange Dragon

@>Control Switches: [0121: GREYFARR Bosses]=ON

@>Control Timer: Startup (10min, 0 sec.)

@>

 

Page 2 (Switch 0121: GREYFARR Bosses is ON (no event pic) Trigger: Parallel Process)

@>Conditional Branch: Timer 0 min 0 sec or less

@>Control Timer: Stop

@>Control Switches: [0121: GREYFARR Bosses]=OFF

@>

: Else

@>

: Branch End

@>

Ok so I logged into the chatroom on this site and Dragon324 was kind enough to help me with a suggestion - to delete the Control Switches: [0121: GREYFARR Bosses]=OFF on the second page to see if that what was doing it. It still booted me out battles when timer hit 0. So, based off that, I tried having the Control Switches: [0121: GREYFARR Bosses]=OFF and deleting the Control Timer: Stop. Still boots out of battle when timer hits 0. So, not knowing what to do, I deleted the whole Page 2. And it Still boots me out of a battle. So it must be that when the Timer hits 0:00, whatever battle I'm currently engaged in just ends, no matter what. Any way around this? Thanks for any help =)!!

Share this post


Link to post
Share on other sites
  • 0

Ok so I logged into the chatroom on this site and Dragon324 was kind enough to help me with a suggestion - to delete the Control Switches: [0121: GREYFARR Bosses]=OFF on the second page to see if that what was doing it. It still booted me out battles when timer hit 0. So, based off that, I tried having the Control Switches: [0121: GREYFARR Bosses]=OFF and deleting the Control Timer: Stop. Still boots out of battle when timer hits 0. So, not knowing what to do, I deleted the whole Page 2. And it Still boots me out of a battle. So it must be that when the Timer hits 0:00, whatever battle I'm currently engaged in just ends, no matter what. Any way around this? Thanks for any help =)!!

 

Ok, so Bob423 said that it was a normal gameplay mechanic that when the timer hits 0:00 that a battle ends. Can anyone give me a ruby script to change this so that when the timer hits 0:00 that battles do not end? Thanks so much in advance! =)

 

{Also maybe move this to Script Requests now?}

Edited by djskagnetti

Share this post


Link to post
Share on other sites
  • 0

Ok, so Bob423 said that it was a normal gameplay mechanic that when the timer hits 0:00 that a battle ends. Can anyone give me a ruby script to change this so that when the timer hits 0:00 that battles do not end? Thanks so much in advance! =)

 

{Also maybe move this to Script Requests now?}

 

 

I FIGURED IT OUT!!

 

For anybody who has a similar problem, here is what you do

 

Open the Ruby Editor

 

Go to Scene_Battle 1

 

on lines 244-248, add a # so it looks like

# If timer has reached 0

# if $game_system.timer_working and $game_system.timer == 0

# Abort battle

# $game_temp.battle_abort = true

# end

 

this completely resolves all my problems with it kicking me out of battle when timer hits 0:00!!

one slight aggravation, very minute in comparison to what was happening before, is that the 0:00 stays on the screen until the end of your current battle - But Hey, Who Cares!? It works awesome now, exactly how I wanted it to! Thanks to all that helped me !

Share this post


Link to post
Share on other sites
  • 0

I FIGURED IT OUT!!

 

For anybody who has a similar problem, here is what you do

 

Open the Ruby Editor

 

Go to Scene_Battle 1

 

on lines 244-248, add a # so it looks like

# If timer has reached 0

# if $game_system.timer_working and $game_system.timer == 0

# Abort battle

# $game_temp.battle_abort = true

# end

 

this completely resolves all my problems with it kicking me out of battle when timer hits 0:00!!

one slight aggravation, very minute in comparison to what was happening before, is that the 0:00 stays on the screen until the end of your current battle - But Hey, Who Cares!? It works awesome now, exactly how I wanted it to! Thanks to all that helped me !

Good job! :D well at least the problem was that and that makes a lot more sense :P. Just goes to show you that you learn something new all the time :P

Share this post


Link to post
Share on other sites
  • 0

Good job! :D well at least the problem was that and that makes a lot more sense :P. Just goes to show you that you learn something new all the time :P

 

Haha, thanks! Lol, in anything you program there always seems to be some super simple code that clustercusses everything up hahaha. Thanks again for your help =)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...