Gizmos Community Projects

From Legends of Aria Admin and Modding Wiki
Revision as of 07:44, 21 January 2018 by Gizmo (talk | contribs) (Installation)
Jump to: navigation, search
Title Page Image.jpg

Simple Spawner

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...

Installation

1) this mod was created so you didn't need any core edits other then the base_mobile.lua. This

  contains a wrapper function for when a monster dies, it communicates with the spawner system.
  if you haven't modified your base_mobile.lua, then dont worry about it. If you have, then you
  probably know what your doing, and can make the simple edit to add my code to your files.

2) Place the contents of the /scripts folder into your Mods /scripts folder 3) Place the contents of the /templates folder into your Mods /template folder 4) your done!


If you do not have a installed mod, then you need to create a folder in your mods directory, if you are new to this do the following


create a new folder in your mods directory named MyMod. inside your MyMod directory you need to paste the contents of the /scripts and /templates folder. you can copy the guide.pdf and the install.txt, it wont hurt anything.

now that you have the mod installed, you need to edit your clusterconfig.xml. Now scroll down and find <Mod Name="" /> edit it to look like this..

<Mod Name="MyMod"/>

Simple Spawner Basics

User Interface

Spawn Tab

SpawnsTab.jpg

[Back to Top]

Loot Tab

Loot Tab.jpg

[Back to Top]

Config Tab

Config Tab.jpg

[Back to Top]

Active Tab

Active Tab.jpg

[Back to Top]

Search Tab

Search Tab.jpg

[Back to Top]

Tutorial Videos

until the NDA is lifted, video links will be posted on the admin forums.....

Simple Spawner Advanced

Object Variables

Messaging System

Built In Commands

Scripts

Templates

GUI

Scripting Reference

Object Targeting Commands

[Back to Top]
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

These commands directly effect the actual object you have spawning. it will spawn anything that has a working template. First I want to talk about the @ symbol. I want you to think of it as it meaning 'and do this to the object' with that said lets move on to a simple example.

the format is pretty simple you take a template and when it spawns adjust some values on it as it spawns into the world. <template>@option,@option,@option,...


Lets say we want to hue a goblin a color of red like FF0000 we would enter

goblin@hue:FF0000


Lets say we want to hue a goblin a color of green like 00FF00, and set his scale 2.5x his size

goblin@hue:00FF00@scale:2.5


[Back to Top]
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
hue @hue:<value> this will set the hue of the spawned object.
scale @scale:<value> this will set the scale of the spawned object.
str @str:<value> this will set the of the spawned object.
agi @agi:<value> this will set the of the spawned object.
int @int:<value> this will set the of the spawned object.
con @con:<value> this will set the of the spawned object.
wis @wis:<value> this will set the of the spawned object.
will @will:<value> this will set the of the spawned object.
name @name:<value> this will set the of the spawned object.
title @title:<value> this will set the of the spawned object.
team @team:<value> this will set the of the spawned object..
location <> info.
rotate <> info.
setobjvar <> info.
effect @effect:<value> this will set the of the spawned object.
sound @sound:<value> this will set the of the spawned object.
body @body:<value> this will set the of the spawned object..
invuln <> info.
facing @facing:<value> this will set the of the spawned object.
health @health:<value> this will set the of the spawned object..
stamina @stamina:<value> this will set the of the spawned object.
mana @mana:<value> this will set the of the spawned object.

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. The general syntax when using OBJECTLIST is

   OBJECTLIST@Mode@ListOfObjects@function()@params
   @Mode can be RANDOM or ALL
   @ListOfObjects should always be like 15,37,45,86 for formatting
   @function the function to call such as SendMessage()
   @params this is the paramater to pass to the function
[Back to Top]
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

[Back to Top]
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

[Back to Top]
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
hue @hue:<value> this will set the hue of the spawned object.

Tutorial Videos

until the NDA is lifted, any videos will be posted on the Admin forums

Simple Spawner Extras

Objects

City Gate

Pressure Plate

Dungeon_Door