Skip to content

cu_register_status en

mouse114514 edited this page Sep 12, 2026 · 1 revision

Register Status

Register Status

Overview

Registers a custom status effect (buff/debuff) with its ID, name, type, description and sprite. Once registered it can be referenced via the status value block and applied to the player with set status.

Usually placed under the when mod awakes event.

Slots

Slot Type Description
ID Status slot Unique identifier of the status. Fill with a status value block
NAME String slot (text) Display name, default My Status
TYPE Dropdown slot 正面效果(buff) / 负面效果(debuff)
DESC String slot (text) Description, default A status effect
SPRITE_REF Sprite slot Status icon. Fill with a sprite value block

Connections

Connection Type Description
Top / Bottom - no statement connections (declaration block)

Dropdown Options

Option Value
Buff buff
Debuff debuff

Generated Code

Emits status registration code that adds the status to the game's status table.

Example

when mod awakes
└── register status id "bleeding" name "Bleeding" type debuff desc "Continuous blood loss" sprite "bleed.png"

Block ID: cu_register_status


中文 | Registration Blocks | Block Reference

Clone this wiki locally