Add-Ons >> Boards >> Events >> Treasure Chest Extension

Treasure Chest Extension

Uploaded by Jes00
Events
Event_TreasureChestExt.zip
Aug 1st 2019, 9:23 AM
24

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>

Updates

No updates approved.

Bugs

No bugs reported.
Download
v1.0.0
There are no comments here yet.