Skip to content

rq.CastleRoomSpec ​

A mod's room in Rance Castle, for rq.castle.room.

Fields ​

NameTypeDescription
namestringThe room's name, as the castle shows it on its button.
on_enterfun(room: rq.CastleRoomHandle )Runs when the player clicks the room. The castle stays open (it is not closed for cleaning), and the game goes back to the town's tabs after it, as with the Poster room.
id (optional)stringThe mod's own name for the room, for rq.castle.rooms. Default name.
floor (optional)integer|stringThe floor: 1 (Roof) to 9 (B2F), or "Roof", "6F" to "1F", "B1F", "B2F". Default "B2F", beside the Poster room.
shown (optional)fun(): booleanAsked each time the castle opens; false leaves the room out this time. Default: always shown.
new (optional)boolean|fun(): booleanThe game's NEW mark on the room. Default false.
face (optional)integer|fun(): integerA CG shown beside the name, as a character's face in the game's rooms. Default none.
chara (optional)integerA character number (rq.ids.chara): their face beside the name, as the game shows it (C顔CG of their roster slot); no face while they are not in the roster. Use this or face. Since 2.22.1 a character number; before, the number was read as a roster slot.

Used by ​

rq.castle.room