2023-05-21: Yes, we're back. No, you can't login yet

Treasure Chest Extension

Uploaded by Jes00

The add-on board icon. Events
The add-on file name icon. Event_TreasureChestExt.zip
The add-on upload date icon. Aug 1st 2019, 1:23 PM
The add-on download count icon. 772

Description

Adds extended functionality for the default treasure chest brick.

If you have Event_onChestOpen, Event_onFoundAllChests, or Script_TreasureChestVars, delete them and replace them with this mod.

Adds the following events: Brick > collectChest [NAME] [BOOL] - Collects or uncollects the target chest from the activating client. Brick > checkChest [NAME] - Checks wether the activating client has collected the target chest or not.

onChestOpen - Called when a chest is collected that the client hasn't found yet. onCheckChestTrue - Called when checkChest is called if the client has already collected the target chest. onCheckChestFalse - Called when checkChest is called if the client has not already collected the target chest. onFoundAllChests - Called when someone has collected all the chests in the server.

If Event_Variables is enabled, adds the following variables: var:gl:numChests var:cl:chestsFound var:cl:chestsLeft

Comments (0)