Jump to content

GB Chest DX

Overview
Creator: Alucard648 Updated: 02 Mar 2026 Tags: FFC Downloads: 31
Rating[?]: Rating: 4/5 (1 rating)
View Script Download Package
(960.94 KB)
Information

Description Setup Reviews Comments

SCREEN_D_GBCHEST_DATA: Which Screen->D[] to use to track the chests. Make sure to pick one not currently in use by other scripts!

GBCHEST_PRIZE_RENDER_TIMER //Time to render prize before acquisition, in frames.
GBCHEST_PRIZE_RENDER_SPEED //Rising speed of revealed item during display.

SPR_GBCHEST_ENEMY_SPAWN = 22;//Sprite to display, when enemy jumps out of chest.
SPR_GBCHEST_ENEMY_MERCY_INVINCIBILITY = 90;//Time, in frames, before enemy starts dealing collision damage after popping out of chest.
Place invisible FFC on top left corner of treasure chest. Set TileWidth and TileHeight to match chest size
D0 chestCombo: The starting combo for your chest. When chest is open, the script changes all combos overlapped by FFC to their next ones in combo data table. If left at 0, it uses combo underneath top left corner of FFC. Otherwise, it cannot be open, until combo underneath top left corner of FFC changes to combo, whose ID is stated in D0, usually via secrets.
D1 openSFX: Abs - What sound effect ID to play upon opening the chest. <0 - No Hold Up on item acquisition.
D2 receiveSFX: What sound to play upon receiving the item.
D3 itemID: The item to give to the player upon opening the chest. < 0 - ID of enemy to spawn instead. I. E. setting D3 to -87 will spawn a death knight out of opened chest.
D4 receiveMessage: Which message to display upon receiving the item. If D3 <0 -> enemy jump speed, in 100th of pixel per frame.
D5 itemDisplay: Whether or not to display the item rising from the chest. 0 = do not display, anything else = display.
D6 lockValue: Whether or not to have the chest be locked. 0 = no lock, 1 = regular key required; 2 = boss key required. Original script had no support for Magic Key, this script allows using Magic Key to unlock GB chests.
D7 Quake power on opening chest.

If you are using ghost.zh, find and un-comment SuspendGhostZHScripts() and ResumeGhostZHScripts(), so ghosted enemies won`t move during chest opening sequence.