Cloud Breaker
Master Knight

Right now all the custom battles begin at dawn or dusk, which I believe is the default time for all the custom battles. I'm trying to change it. I've tried to put the 'wait' script in the game menus module, (since I haven't found any other script) in the appropriate trigger sections, with no luck. The game hangs up when loading a custom battle, as expected.
The script I used was:
(store_time_of_day,":cur_time_of_day"),
(val_add, ":cur_time_of_day", 1),
(assign, ":time_to_wait", 3),
(val_sub,":time_to_wait",":cur_time_of_day"),
(val_mod,":time_to_wait",3),
(val_add, ":time_to_wait", 1),
(rest_for_hours, ":time_to_wait", 5, 1), #rest while attackable
(change_screen_return),
Basically I tried to advance the time by 3 hours (I think so) to see if whether the battle will take place at morning or in the evening, and manipulate the time from there. It didn't work.
Help is needed.
The script I used was:
(store_time_of_day,":cur_time_of_day"),
(val_add, ":cur_time_of_day", 1),
(assign, ":time_to_wait", 3),
(val_sub,":time_to_wait",":cur_time_of_day"),
(val_mod,":time_to_wait",3),
(val_add, ":time_to_wait", 1),
(rest_for_hours, ":time_to_wait", 5, 1), #rest while attackable
(change_screen_return),
Basically I tried to advance the time by 3 hours (I think so) to see if whether the battle will take place at morning or in the evening, and manipulate the time from there. It didn't work.
Help is needed.
