Full Version : Setting up Time of Day (TOD) limited spawns
xmlspawner >>XMLSpawner - How do I? >>Setting up Time of Day (TOD) limited spawns
<< Prev | Next >>
ArteGordon- 01-01-2006
Creating spawns that only appear at certain times of the day
Set the TODStart and TODEnd properties on the spawner to the times of day that you would like to limit spawning to. Use a 24 hour clock to assign time values.
If they are set to the same value, that enables spawning at all times.
If the Start value is greater that the end value, that indicates a time window that spans midnight.
Spawns that remain after the TOD window has passed will be removed.
Note that timing of spawning is still governed by the spawn timer (can be seen as the NextSpawn property in the spawner property list). The TOD window simply determines whether a spawn will be allowed to be created once the spawn timer has elapsed.
The TOD window is also applied to proximity triggering. It determines both whether the trigger can be set (must be triggered during the TOD window), as well as whether the spawn can be created (spawn must occur during the TOD window).
Example:
For example, to set up a spawn that only appears between 10pm and 3am, use these settings:
TODStart = 22:00
TODEnd = 3:00
Game time or Real time?
The TOD settings can be applied using either the actual real-world time, or using the UO-world time. This can be selected by setting the TODMode property on the spawner to Gametime or Realtime.
Note, by default, a UO day lasts 2 hours of real-world time.
Lara- 06-22-2006
Do you set up the times differently when trying to use the UO-world time?
If a game day runs every two hours, do we still use a 24 hr clock to set it?
If a game day is every two hours, do you know if it runs from midnight to midnight as well?
So if I wanted a spawn to only spawn at night, such as undead ... would I set it to say 22:00 to 03:00 and then set to UO-world time, would that then run every "night" of the game day, or 12 times in a real day?
Thank you for your time.
ArteGordon- 06-22-2006

QUOTE (Lara @ June 22, 2006 11:15 am)
Do you set up the times differently when trying to use the UO-world time? If a game day runs every two hours, do we still use a 24 hr clock to set it? If a game day is every two hours, do you know if it runs from midnight to midnight as well? So if I wanted a spawn to only spawn at night, such as undead ... would I set it to say 22:00 to 03:00 and then set to UO-world time, would that then run every "night" of the game day, or 12 times in a real day?
Thank you for your time.

You use the same time format for Game or Real time (24 game hours per game day).
If you set it for 22:00 to 03:00 in and set the TODMode to GameTime then it would run every "night" of the game day (12 times a real day).
Lara- 06-22-2006
puurrrrrfect
*runs off to tweek spawns*
godfood- 08-20-2006
Ok, I have aspawn set up in a room where at a certain time it spawn's a mob every second and set's their location to one of the corners where a "hole" is as if they are coming out of the hole. Then they wander to their "Homes" int he room. Now, I'd would absolutely love to have the spawner set their "home" to the hole at the and of the TOD spawning and once they get back to the "Hole" have them be removed instead of having them all just "Dissapear" at the end of the TOD range. Any idea's Arte?
ArteGordon- 08-21-2006

QUOTE (godfood @ August 21, 2006 12:55 am)
Ok, I have aspawn set up in a room where at a certain time it spawn's a mob every second and set's their location to one of the corners where a "hole" is as if they are coming out of the hole. Then they wander to their "Homes" int he room. Now, I'd would absolutely love to have the spawner set their "home" to the hole at the and of the TOD spawning and once they get back to the "Hole" have them be removed instead of having them all just "Dissapear" at the end of the TOD range. Any idea's Arte?

I would have a second spawner that had TOD settings configured to activate it at the end of the first spawners TOD window.
The second spawner would change the Home of the spawns with SETONSPAWN.