Module: callback

Someone is inviting you to a party
Parameters:
Name Type Description
name string The name of the inviting player
Source:
Source:
Parameters:
Name Type Description
entity Player | Monster
data
Source:
Source:
Parameters:
Name Type Description
command string
args string
Source:
Returns:
Type
number

Methods

(inner) send_cm(to, data)

Send CODE messages to the characters, of course it only works if both characters have CODE active.
Parameters:
Name Type Description
to Array | string Either an Array of names or just a name
data Object The data to be sent in object form
Source:
When multiple characters stay in the same spot, they receive combined damage, this function gets called whenever a monster deals combined damage. Override this function in CODE to react to it
Parameters:
Name Type Description
name string The name of the inviting player
Source:
Source:
Parameters:
Name Type Description
entity Player | Monster
data
Source:
Source:
Parameters:
Name Type Description
command string
args string
Source:
Returns:
Type
number

Methods

(inner) send_cm(to, data)

Send CODE messages to the characters, of course it only works if both characters have CODE active.
Parameters:
Name Type Description
to Array | string Either an Array of names or just a name
data Object The data to be sent in object form
Source:
This function gets called whenever an entity disappears
Parameters:
Name Type Description
name string The name of the inviting player
Source:
Source:
Parameters:
Name Type Description
entity Player | Monster
data
Source:
Source:
Parameters:
Name Type Description
command string
args string
Source:
Returns:
Type
number

Methods

(inner) send_cm(to, data)

Send CODE messages to the characters, of course it only works if both characters have CODE active.
Parameters:
Name Type Description
to Array | string Either an Array of names or just a name
data Object The data to be sent in object form
Source:
Parameters:
Name Type Description
name string The name of the inviting player
Source:
Source:
Parameters:
Name Type Description
entity Player | Monster
data
Source:
Source:
Parameters:
Name Type Description
command string
args string
Source:
Returns:
Type
number

Methods

(inner) send_cm(to, data)

Send CODE messages to the characters, of course it only works if both characters have CODE active.
Parameters:
Name Type Description
to Array | string Either an Array of names or just a name
data Object The data to be sent in object form
Source:
When a character dies, character.rip is true, you can override handle_death and manually respawn IDEA: A Resident PVP-Dweller, with an evasive Code + irregular respawning respawn current has a 12 second cooldown, best wait 15 seconds before respawning [24/11/16] setTimeout(respawn,15000); return true; NOTE: Add `if(character.rip) {respawn(); return;}` to your main loop/interval too, just in case
Parameters:
Name Type Description
name string The name of the inviting player
Source:
Source:
Parameters:
Name Type Description
entity Player | Monster
data
Source:
Source:
Parameters:
Name Type Description
command string
args string
Source:
Returns:
Type
number

Methods

(inner) send_cm(to, data)

Send CODE messages to the characters, of course it only works if both characters have CODE active.
Parameters:
Name Type Description
to Array | string Either an Array of names or just a name
data Object The data to be sent in object form
Source:
You can implement your own chat commands with this function.
Parameters:
Name Type Description
name string The name of the inviting player
Source:
Source:
Parameters:
Name Type Description
entity Player | Monster
data
Source:
Source:
Parameters:
Name Type Description
command string
args string
Source:
Returns:
Type
number

Methods

(inner) send_cm(to, data)

Send CODE messages to the characters, of course it only works if both characters have CODE active.
Parameters:
Name Type Description
to Array | string Either an Array of names or just a name
data Object The data to be sent in object form
Source: