ID:162499
Dec 30 2007, 6:55 am
|
|
So how can I make these? Do i need to make object or mob with time proc running through or what?
|
In response to GhostAnime
|
|
Thanks!
|
In response to GhostAnime
|
|
I hate nitpicking, but you should note that <code>if(day++ >= 366)</code> would start the new year when <code>day</code> is 367, since a post-incremention only increments after the original value is retrieved. You'd probably want that to be <code>++day</code> instead.
|
In response to DivineO'peanut
|
|
Ah, yes, you're correct. Heh, didn't notice that <_<
|
In response to GhostAnime
|
|
I get error that there are no SaveWorldVariables or LoadWorldVariables Procs,,,
|
In response to Syntty
|
|
That's because he's telling you to make them.
|
In response to Kaiochao2536
|
|
Oh :D
Edit: Would this work? proc But how can I make load proc? |
In response to Syntty
|
|
Would this work? No. how can I make load proc? Load what? The map? Player characters? The number of times cookies were baked in the last hour? For maps, take a look at hub://LummoxJR.SwapMaps. For saving characters, there is the excellent hub://Deadron.CharacterHandling. |
But if you have your own set defined time for when a day begins and when it ends, most likely than not, you would need an infinite loop sleep()ing for a certain amount of time than calling in whatever effect you want (ex: night overlay) and increasing whatever variable you want as well (ex: day++). This procedure should be called at world/New()
For the age system, well... there are a few ways. You can increase the mobs age depending on how long they were logged in for (using world.time when they logged in and when they leave). An infinite loop should be used if you are looking if a certain time-point to pass if you want to change the icon, using sleep(). This procedure should be different than the day system (you don't want someone to get one year older when the year passes for a person logged on only for 5 minutes when the year takes 20 minutes, right?)
Boolean info --> http://bwicki.byond.com/ByondBwicki.dmb?TrueFalse
What usr actually is --> http://bwicki.byond.com/ByondBwicki.dmb?WhatIsUsr