Entity Mod JSON Format

From SkyCorp Global
Revision as of 06:26, 21 December 2017 by SkyCorp (talk | contribs)

Entity JSON supports a variety of parameters to create custom objects. JSON definitions can specify each as programmable (LUA) or literal values.

Return Type Parameter
string name

Title of the item.

string description

Description of the item when looked at.

boolean playerOnEnterRoom

Can be used to present some special text when player enters a room when this object is inside it.

Normally true. If false, will prevent mapscene from doing further room processing (be sure to use a continue)

boolean playerAttemptLeaveRoom

Can be used to prevent

boolean isExaminable
boolean isUseable
boolean doUse
boolean isPickupable
boolean playerAttemptPickupCheck
boolean isDropable
boolean playerAttemptDropCheck
void inInventoryTick
void inWorldTick
void notifyPlayerEnterRoom
void notifyPlayerEnterRoomPreScene
void notifyPlayerLeftRoom