.roo 房間檔格式說明

這頁整理 document/room.txt 的主要內容,方便在 GitHub Pages 上快速查 .roo 欄位與區塊。

Source Of Truth

檔案位置

area/<area>/roo/*.roo

基本格式

Vnum            <number>
Name            <string>~
Description
<multiline text>
~
SectorType      <number or symbol>
<room flags>    Yes

#Exit
Direction       <number or symbol>
ExitVnum        <number>
ExitDesc        <string>~
ExitKeyword     <string>~
Message         <string>~
ExitKey         <number>
<exit flags>    Yes
End

#Keyword
Keyword         <string>~
Description
<multiline text>
~
End

#Job
Keyword         <string>~
Function        <string>~
Position        <number or symbol>
End

End

主要欄位

欄位 用途
Vnum 房間號碼
Name 房間名稱
Description 進房時看到的完整描述
SectorType 地形類型
房間旗標 定義房間性質,例如安全區、銀行、不可戰鬥

SectorType

文件列出的常見地形有:

這些值同時影響移動消耗。

房間旗標

document/room.txt 列出常見旗標,例如:

這些旗標決定玩家在房間裡可做的事與系統功能。

#Exit

出口區塊常見欄位:

這是 .roo 最關鍵的結構之一。雖然舊文件用傳統出口概念說明,但目前 repo 實作還要一起看 src/act_move.c 與現況 area 範例。

#Keyword

房內可 look <keyword> 的額外描述。

#Job

讓房間可依關鍵字呼叫 job.c 內函式;這對解謎、互動牆面、交通節點都很重要。

實務提醒

建議搭配閱讀