I wasn't in a programmin' mood at that point. I made some HUGE logical errors there.. Sorry about that, 'twas one of those days. Today, after going through the code I gave you, I'm completely embarrassed about the stupidity of that code. Why I thought nesting was a good idea when it's dependant on being equal to something is beyond me. You can probably see the flaw right away when it's simplified..
Code:
if x = 4 then
if x = 6 then
print "wait, why does x=6 if x=4 going into the branch?"
end if
end if |
Oh well. Going to dig up my old day/night routine, screenshot it, and attach it.
------------------------
Okay then, After a bit of thinking I've dug up my old day/night routine. 3 parts to it originally, but a quick test shows that a 4th routine might be useful.
These have already been tested, at least on RM2k3.. still, I think the 4th addition might be rather useful to you. Saves a bit of time coding, at least.
(Let's try.. this. These are the two "Call" events. Simply call them when appropriate. You want to call the "HouseTime" one when you are going into a house, and the "RestartTime" one when you leave. For some reason they're not attaching the right way.)