Spawner Documentation
back to Project Phoenix#Spawners
Contents
Introduction
Gizmos Simple Spawner is a object you can place in your world in which will spawn given objects at a rate of your choosing. Simply it puts things in the world for you like monsters or harvest item, even a sword or some lemongrass. It does what it states.. it simply spawns stuff. There is another side to the Gizmos Simple Spawner system though.
Advanced Spawning is something of its own kinda beast. Not only can you spawn objects, but you can also modify those objects in many ways, such as its scale, or hue.. you can even use advanced things such as setting an object variable on the object. You can communicate with objects outside the spawner by using keywords and a simple scripting language that runs behind the scenes. You can force spawners to wait on other objects to get a varible or reach a certain sequence. Want to run a simple old school champion spawn from the days of old? You can do that too. But thats is not all.
The spawners have the ability to code there own templates based on the data you enter. So once you set up a spawner with data, or lots of data you want to reuse for other spawners. It is simple just create your spawner, edit the data and click a button and the template is created...
Scripting Reference
Object Targeting Commands
Commands | Argument | Description |
---|---|---|
The following commands can be found in gizmos_simple_spawner.lua file. You can find them in the CheckingCommands(data) function | ||
SendMessage() | <Message> | This sends a message to the OBJECT you wish to send a message too. |
SetHue() | <hue> | This will apply the OBJECT:SetHue(<hue>) function to the OBJECT |
Talk() | <Message> | Gives the NPC a overhead message |
SetScale() | <int> | This sets the targets scale.x,scale.y,scale.z to <int> |
SetObjVar() | <objvar>:<value> | this will set the <objvar> of the target to <value> |
DelObjVar() | <objvar> | this deletes an <objvar> from the target.+ |
RotateBy() | <x,y,z> | rotates the x,y,z by the values in degrees. |
SetLocation() | <x,y,z> | moves the target to the x,y,z values for the location. |
PlayEffect() | <effectname> | plays the <effectname> on the target |
StopEffect() | <effectname> | stops the <effectname> on the target |
PlaySound() | <soundname> | plays the <soundname> at the targets location |
Spawned Object Commands
Commands | Syntax | Description |
---|---|---|
The following commands can be found in gizmos_simple_spawner.lua file. You can find them in the HandleChanges(mob,spawn_template) function | ||
SetHue | @hue:<value> | this will set the hue of the spawned object. |
SetColor | @hue:<value> | this will set the hue of the spawned object. |
SetScale | @scale:<value> | this will set the scale of the spawned object. |
SetStr | @str:<value> | this will set the of the spawned object. |
SetAgi | @agi:<value> | this will set the of the spawned object. |
SetInt | @int:<value> | this will set the of the spawned object. |
SetCon | @con:<value> | this will set the of the spawned object. |
SetWis | @wis:<value> | this will set the of the spawned object. |
SetWill | @will:<value> | this will set the of the spawned object. |
SetName | @name:<value> | this will set the of the spawned object. |
SetTitle | @title:<value> | this will set the of the spawned object. |
SetTeam | @team:<value> | this will set the of the spawned object.. |
SetLocation | @location:<x>,<y>,<z> | this will spawn the object at x,y,z location. |
SetRotation | @rotate:<x>,<y>,<z> | this will rotate some objects by x,y,z rotation. |
SetObjVar | @setobjvar:<objvarname>,<objvarvalue> | this will add an objvar to the spawning object |
SetSkill | @setobjvar:<objvarname>,<objvarvalue> | this will add an objvar to the spawning object |
PlaySimpleEffect | @effect:<value> | this will set the of the spawned object. |
PlaySound | @sound:<value> | this will set the of the spawned object. |
SetAppearanceFromTemplate | @body:<value> | this will set the of the spawned object.. |
SetInvulnerability | @invuln:<true>/<false> | this will set the mob spawned to be invulnerable. |
SetFacing | @facing:<value> | this will set the of the spawned object. |
SetHealth | @health:<value> | this will set the of the spawned object.. |
SetStamina | @stamina:<value> | this will set the of the spawned object. |
SetMana | @mana:<value> | - |
AddModule | @mana:<value> | - |
RemoveModule | @mana:<value> | - |
SetSharedObjectProperty | @mana:<value> | - |
SetObjectTag | @mana:<value> | - |
OBJECTLIST Commands
OBJECTLIST gives you the ability to make a list of objects. Then with the RANDOM,ALL you will be able to send a message to a RANDOM object on the list, or ALL of the objects on the list.
Example Syntax | What it means |
---|---|
The following commands can be found in gizmos_simple_spawner.lua file. You can find them in the HandleChanges(mob,spawn_template) function | |
OBJECTLIST@RANDOM@objectid1,objectid2,objectid3@SendMessage()@<message> | this will randomly pick from objectid1,objectid2,objectid3 and will send the message <message> to the randomly picked object |
OBJECTLIST@ALL@objectid1,objectid2,objectid3@SendMessage()@<message> | this will send all of objectid1,objectid2,objectid3 the message <message> |
FUNCTIONS
Function Name | Syntax | Description |
---|---|---|
The following commands can be found in gizmos_simple_spawner.lua file. You can find them in the HandleChanges(mob,spawn_template) function | ||
SendMessage() | @SendMessage()@<message> | this will send the <message> to the object |
SetHue | @SetHue()@<value> | this will set the objects hue to <value> |
WAITFOR Commands
Commands | Syntax | Description |
---|---|---|
The following commands can be found in gizmos_simple_spawner.lua file. You can find them in the HandleChanges(mob,spawn_template) function | ||
GetObjVar() | WAITFOR@OBJECT@<objectid>@GetObjVar()@<objvarname>@<condition>@<value> | the spawner will wait at this sequence, until an objvar meets a condition. |
HasObjVar() | WAITFOR@OBJECT@<objectid>@HasObjVar()@<objvarname> | the spawner will wait at this sequence, until the object has the objvar. |
HasModule() | WAITFOR@OBJECT@<objectid>@HasModule()@<modulename> | the spawner will wait at this sequence, until the object has the module <modulename>. |
MISC Commands
Commands | Syntax | Description |
---|---|---|
The following commands can be found in gizmos_simple_spawner.lua file. You can find them in the HandleChanges(mob,spawn_template) function | ||
GOTO | GOTO@<sequence> | this will start the sequence off at the sequence provided by <sequence> |