Help - Search - Members - Calendar
Full Version: Bugged Day and Night cycles?
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
Thorack
I followed a Day and Night cycle tutorial now when ever the time of day changes with in a battle the battle ends and the enemy is killed. Can anyone help me out here? I used this tutorial.

http://rmxp.tigerseye.uk.com/tutorial_esystem2.shtml

Its the only one that works so far. dry.gifsleep.gif

Thanks.
Jens of Zanicuud
This is a RMXP default setting. When a timer expires, the battle automatically ends.
To fix it, go to script and look for:

Scene_Battle 1

line 272:
CODE
if $game_system.timer_working and $game_system.timer == 0
      # abort battle
      $game_temp.battle_abort = true
    end


then replace it with this:

CODE
if $game_system.timer_working and $game_system.timer == 0
   common_event = $data_common_event[COMMON_EVENT_ID]
   $game_system.battle_interpreter.setup(common_event.list, 0)
   $game_system.timer = DAY_DURATION_IN_SECONDS * Graphics.frame_rate
   $game_system.timer_working = true
end


Replace DAY_DURATION_IN_SECONDS with the number of seconds your timer should display when activated again.
Replace COMMON_EVENT_ID with the TimeOfDayChange common event id.

and remove the lines above. This way, your timer won't cause the battle ending.
Moreover, screen will keep on changing its tint every cycle.

Tell me if it worked...
I hope this can help.

Jens
Thorack
I thought there was something like that in the scripts, i'll try it when I get some free time. Thanks for the help by the way smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.