chicken bok bok bok... anyway you guys shouldn't argue over who's d/n tool is better (although the argument is actually pretty funny to read) They both have ups and downs, but I know only one will last for a while, while the other will eventually become mostly unused because of the difference in coding. Why does that matter? well if one is able to support separate day and night wild pokemon data and scripts, it will be more useful for hacking, because it does more than the other one in terms of timed events, although I guess if someone finds out how the timed events in r/s work (like Shoal Cave) it wouldn't matter whose can create time of day events in theirs, as a clean rom would have those possibilities and both will be able to do this, unless one disables this, of course...
Timed events can happen by checking the game's current pallet status. This is an extremely simple matter.
You just have to use an XSE command called comparefarbytetobyte
One single color in the pallet uses a 'word' to tell the game what color it is.
(The 4 digit GBA color code you see in APE)
Now... lets say on a normal basis, the color you are looking at during the day time, is 45AC.
(Just an example, it might not be that.)
But at night time, that value is set to 2AC1...
Well, you would open up your VBA, and go to the pallet viewer, and click on the color described, and it's location in the RAM would be seen...
(Lets say, 0x500532)
SO, you would have the event set up like this;
Code:
#dynamic 0x800000
#org @start
comparefarbytetobyte 0x500532 0x2A
if b_== goto @night
goto @day
--------------------------------
Of course, there is a MUCH easier way, but it requires a flag to be set...
There ARE time based flags in the game...
Just open up the Berry Master, Berry Master's Wife, or the Lottery's scripts, there is a special flag, that you might notice, near the end of the main script... (Like after the berry master gives you your berries.) THAT is a time based flag, that when it is set, will clear itself automatically at 00:00, or 12:00 AM.
There are differences in the ways these can be used, for instance, Time based flags are great for things like a once per day event, and checking the pallet using comparefarbytetobyte is great for events that should ONLY happen at night, or ONLY happen during the day.
(LOL, if that wasn't a +rep worthy post, I dunno what is! (I am NOT asking for +rep, I was posting my opinion.))