Top

Secret Chronicles of the Scripting API documentation

Class Std::GiantJewelBox

This class fills a box with any amount of jewels. When the player activates the box, the jewels are thrown out of the box all at once and move over the field. Use it like this:

b = GiantJewelBox.new(UIDS[14], 10)

This fills the box with UID 14 with 10 jewels of random nature (red or blue ones).

Class Methods

new

new(box, count) → a_giant_jewel_box

Creates a new giant jewel box.

Parameters

box

A Box instance to attach the climbing plant to. May also be a raw UID.

count

The number of jewels to place in the box.

Instance Methods

activated?

activated?() → bool

Has the box been activated?

attach

attach()

Fill the box with jewels.