Difference between revisions of "Project Phoenix 2 Spawners"
(Created page with "*Back to Main Page ==Welcome==") |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | *[[Project_Phoenix_2|Back to Main Page]] | + | *[[Project_Phoenix_2#Scripts|Back to Main Page]] |
==Welcome== | ==Welcome== | ||
+ | Spawners are the bread and butter objects in the game. They will put a creature or plant like cotton in the world and if the player kills the creature or picks the cotton it will respawn the object back into the world by within a time frame of your choosing. The spawn system comes with a template called spawner. It also comes with a user interface in game to edit the properties of the spawner. You also have the option to save the spawners to a data file so when you run a resetworld command you can run the loadspawners command. you can use the command savespawners to save them. | ||
+ | |||
+ | ==Files== | ||
+ | Below is a list of all the files that involve the spawner system or where the core structure is. | ||
+ | *scripts\spawning\spawner\spawner.lua | ||
+ | *scripts\spawning\spawner\spawner_datatables.lua | ||
+ | *scripts\spawning\spawner\spawner_localization.lua | ||
+ | *scripts\spawning\spawner\spawner_ui.lua | ||
+ | |||
+ | Below is a list of all the files that involve the spawner save system. | ||
+ | *scripts\commands\spawning\spawner.lua | ||
+ | |||
+ | ==How it Works== | ||
+ | Step 1) in the game chat console type /create spawner. | ||
+ | Step 2) double click the red spawner, if you don't see it hit the '[' key to toggle nodraws on and off. | ||
+ | Step 3) on the spawner user interface you can modify the spawner behavior, lets add a monster. | ||
+ | Step 4) Click the gear box icon next to the Templates. | ||
+ | Step 5) Select a category of monster to spawn, scroll down to Undead | ||
+ | Step 6) Select skeleton from the list | ||
+ | |||
+ | There are other options you can change in the spawner. Hover your mouse over the question marks by the spawner options to get a tooltip on what the variables do. Also you can set the values by selecting the gear box on the right side of the user interface. That is it!! Enjoy! |
Latest revision as of 16:56, 21 August 2019
Welcome
Spawners are the bread and butter objects in the game. They will put a creature or plant like cotton in the world and if the player kills the creature or picks the cotton it will respawn the object back into the world by within a time frame of your choosing. The spawn system comes with a template called spawner. It also comes with a user interface in game to edit the properties of the spawner. You also have the option to save the spawners to a data file so when you run a resetworld command you can run the loadspawners command. you can use the command savespawners to save them.
Files
Below is a list of all the files that involve the spawner system or where the core structure is.
- scripts\spawning\spawner\spawner.lua
- scripts\spawning\spawner\spawner_datatables.lua
- scripts\spawning\spawner\spawner_localization.lua
- scripts\spawning\spawner\spawner_ui.lua
Below is a list of all the files that involve the spawner save system.
- scripts\commands\spawning\spawner.lua
How it Works
Step 1) in the game chat console type /create spawner. Step 2) double click the red spawner, if you don't see it hit the '[' key to toggle nodraws on and off. Step 3) on the spawner user interface you can modify the spawner behavior, lets add a monster. Step 4) Click the gear box icon next to the Templates. Step 5) Select a category of monster to spawn, scroll down to Undead Step 6) Select skeleton from the list
There are other options you can change in the spawner. Hover your mouse over the question marks by the spawner options to get a tooltip on what the variables do. Also you can set the values by selecting the gear box on the right side of the user interface. That is it!! Enjoy!