-
Notifications
You must be signed in to change notification settings - Fork 5
Spawn functions
All functions are described in the Spawn
class in the file lib/spawn.js.
Function arguments: item
, angle
, distance
, delay
, duration
Argument | Value | Usage |
---|---|---|
item | Number | Item identifier of the spawned item, see https://teralore.com/en/items/ |
angle | Number | Offset angle relative to binding point (e.g. boss) |
distance | Number | Offset distance relative to binding point (1 meter = 25 units) |
delay | Number | Object spawn time delay |
duration | Number | The lifetime of the object (before its despawn) |
{ "type": "spawn", "func": "item", "args": [88704, 0, 0, 0, 1000] }
Function arguments: target
, angle
, distance
, delay
, duration
, highlight
, label
Argument | Value | Usage |
---|---|---|
target | true, false | Using dest instead of loc when defining an anchor point |
angle | Number | Offset angle relative to binding point (e.g. boss) |
distance | Number | Offset distance relative to binding point (1 meter = 25 units) |
delay | Number | Object spawn time delay |
duration | Number | The lifetime of the object (before its despawn) |
highlight | true, false | Turn on the highlight marker |
label | [String, String], null | Array of text label |
{ "type": "spawn", "func": "marker", "args": [false, 180, 100, 0, 2000, false, ["CENTER", "IN"]] }
Function arguments: item
, angle
, distance
, delay
, duration
Argument | Value | Usage |
---|---|---|
item | Number | Item identifier of the spawned item, see https://teralore.com/en/gatherables/ |
angle | Number | Offset angle relative to binding point (e.g. boss) |
distance | Number | Offset distance relative to binding point (1 meter = 25 units) |
delay | Number | Object spawn time delay |
duration | Number | The lifetime of the object (before its despawn) |
{ "type": "spawn", "func": "point", "args": [553, 120, 250, 0, 3000] }
Function arguments: item
, offsetAngle
, offsetDistance
, angle
, length
, delay
, duration
Argument | Value | Usage |
---|---|---|
item | Number | Item identifier of the spawned item, see https://teralore.com/en/gatherables/ |
offsetAngle | Number | Offset angle relative to binding point (e.g. boss) |
offsetDistance | Number | Offset distance relative to binding point (1 meter = 25 units) |
angle | Number | Angle of the vector direction |
length | Number | The length of the vector in units (1 meter = 25 units) |
delay | Number | Object spawn time delay |
duration | Number | The lifetime of the object (before its despawn) |
{ "type": "spawn", "func": "vector", "args": [553, 0, 0, 240, 380, 0, 2000] },
{ "type": "spawn", "func": "vector", "args": [553, 0, 0, 120, 380, 0, 2000] }
Function arguments: target
, item
, offsetAngle
, offsetDistance
, interval
, radius
, delay
, duration
Argument | Value | Usage |
---|---|---|
target | true, false | Using dest instead of loc when defining an anchor point |
item | Number | Item identifier of the spawned item, see https://teralore.com/en/gatherables/ |
offsetAngle | Number | Offset angle relative to binding point (e.g. boss) |
offsetDistance | Number | Offset distance relative to binding point (1 meter = 25 units) |
interval | Number | The factor of the multiplicity of objects in a circle (less value - more objects) |
radius | Number | The radius of the circle in units (1 meter = 25 units) |
delay | Number | Object spawn time delay |
duration | Number | The lifetime of the object (before its despawn) |
{ "type": "spawn", "func": "circle", "args": [true, 553, 0, 300, 12, 228, 0, 3000] }
Function arguments: degree1
, degree2
, item
, offsetAngle
, offsetDistance
, interval
, radius
, delay
, duration
Argument | Value | Usage |
---|---|---|
degree1 | Number | Degree of the first half of the semicircle (negative values allowed) |
degree2 | Number | Degree of the second half of the semicircle (negative values allowed) |
item | Number | Item identifier of the spawned item, see https://teralore.com/en/gatherables/ |
offsetAngle | Number | Offset angle relative to binding point (e.g. boss) |
offsetDistance | Number | Offset distance relative to binding point (1 meter = 25 units) |
interval | Number | The factor of the multiplicity of objects in a circle (less value - more objects) |
radius | Number | The radius of the circle in units (1 meter = 25 units) |
delay | Number | Object spawn time delay |
duration | Number | The lifetime of the object (before its despawn) |
{ "type": "spawn", "func": "semicircle", "args": [-60, 70, 912, 0, 50, 8, 450, 0, 4000] },
{ "type": "spawn", "func": "semicircle", "args": [120, 250, 912, 0, 50, 8, 450, 0, 4000] }
When enabled, will use dest property instead of loc when defining an anchor point. The dest is a entity object of the boss skill taken from S_ACTION_STAGE
. Its needed on some mechanics for more accurate binding to NPC in action (e.g. boss).
Best practice is to use dest for items attached to the boss action stage, and use loc for items when the boss is standing (AoEs, donuts, waves, etc.).
id | Name |
---|---|
553 | Cyasma Cylinder |
912 | Struthio Egg |
445 | Aefra |
537 | Mutated Mushroom |
413 | Sweet Hayblossom |
476 | Azure Shard |
548 | Reflective Root |
id | Name | Lighting |
---|---|---|
89542 | Annihilation Disc | Blue pillar of light |
89543 | Annihilation Disc | Violet pillar of light |
206960 | Zenobia's Breeze Crate | Red pillar of light |
110684 | Tier 21 Superior Twin Swords | Blue pillar of light (without name) |
88704 | Velika Banquet Coin | High pillar of light |