3DダンジョンRPG ver.1.0 のデータファイル書式


全体
ヘッダ部(1行目)
各階層データ
ワンダリングモンスター分布データ
鍵付き扉データ
イベントデータ
アイテムデータ
プレイヤーデータ
モンスターデータ
(イメージ番号の並び順)


ヘッダ部
Title ImageSize
String Title タイトル
int ImageSize 部品イメージの大きさ


階層データ
Floor NumberOfFloor
"Floor" 階層データ定義部開始のキーワード
int NumberOfFloor マップに含まれる階層数

FloorTitle FloorLabel - NumberOfFloor個
nx ny
ceil red green blue
floor red green blue
wall red green blue
door red green blue
w11 w12 ......
...... wxy
String FloorTitle 階層タイトル (タイトル無しは"null")
int FloorLabel 階層番号(地下は<0)
int nx,ny 階層の大きさ
"ceil","floor","wall","door" 天井・床・壁・鍵無し扉を表すキーワード
int red,green,blue 表示色のRGB成分(0〜255)
int wxy 壁データ (x=1〜nx, y=1〜ny)
0無し
1
2鍵無し扉
〜-1鍵付き扉


ワンダリングモンスター分布データ
MonsterMap
"MonsterMap" ワンダリングモンスター分布データ定義部開始のキーワード

fullfloor floorLabel monsterNumber
monster encount - monsterNumber個
"fullfloor" 全階層を表すキーワード
int floorLabel 階層番号
int monsterNumber 現れるモンスター種類数
int monster モンスター番号
int encount モンスター遭遇確率(%)

end
"end" ワンダリングモンスター分布データ定義部終了のキーワード


鍵付き扉データ
KeyDoor NumberOfKey
"KeyDoor" 鍵付扉データ定義部開始のキーワード
int NumberOfKey 鍵の種類数

KeyLabel red green blue - NumberOfKey個
int KeyLabel 鍵番号(<0)
int red,green,blue 扉の表示色のRGB成分(0〜255)


イベントデータ
Event
"Event" イベントデータ定義部開始のキーワード

スタート
start floor x y MessageLine
message - MessageLine行
"start" スタート定義部のキーワード
int floor,x,y スタート位置
int MessageLine スタート時メッセージの行数
String message スタート時メッセージ

ゴール
goal floor x y MessageLine
message - MessageLine行
"goal" ゴール定義部のキーワード
int floor,x,y ゴール位置
int MessageLine ゴール時メッセージの行数
String message ゴール時メッセージ

階段
stairs floor1 x1 y1 floor2 x2 y2
message1
message2
"stairs" 階段定義部のキーワード
int floor1,x1,y1,floor2,x2,y2 (上下)階段位置
String message1,massage2 (上下)階段のメッセージ

片道ワープ
warp1way floor1 x1 y1 floor2 x2 y2 message
"warp1way" 片道ワープ定義部のキーワード
int floor1,x1,y1 ワープ入り口位置
int floor2,x2,y2 ワープ行き先位置
String message ワープ時メッセージ

双方向ワープ
warp2way floor1 x1 y1 floor2 x2 y2 message
"warp2way" 双方向ワープ定義部のキーワード
int floor1,x1,y1,floor2,x2,y2 ワープ位置(2ヶ所)
String message ワープ時メッセージ

エレベーター
elevator NumberOfFloor message
floor x y - NumberOfFloor個
"elevator" エレベーター定義部のキーワード
int NumberOfFloor エレベーターで移動できる階層数
String message エレベーターのメッセージ
int floor,x,y エレベーターの設置位置

アイテム
item ItemLabel floor x y
message1
message2
"item" アイテム獲得位置定義部のキーワード
int ItemLabel アイテム番号
int floor,x,y アイテムがある位置
String message1 アイテム発見時のメッセージ
String message2 アイテム獲得時のメッセージ

固定モンスター
encount MonsterLabel floor x y
message
"encount" 固定モンスター遭遇位置定義部のキーワード
int MonsterLabel モンスター番号
int floor,x,y 固定モンスター遭遇位置
String message モンスター遭遇時のメッセージ

メッセージ
message floor x y MessageLine
message - MessageLine行
"message" メッセージ定義部のキーワード
int floor,x,y メッセージ位置
int MessageLine メッセージの行数
String message メッセージ内容

回復ポイント
heal floor x y
message1
message2
"heal" 回復ポイント定義部のキーワード
int floor,x,y 回復ポイント位置
String message1 回復ポイント発見時のメッセージ
String message2 回復時のメッセージ

end
"end" イベントデータ定義部終了のキーワード


アイテムデータ
Item
"Item" アイテムデータ定義部開始のキーワード

ItemLabel ItemType ItemValue UseSwitch DropSwitch ItemName
int ItemLabel アイテム番号
String ItemType アイテムの種類
cureHP回復アイテム
key
weapon武器
defend防具
int ItemValue アイテム属性値
HP回復アイテムHP回復量
鍵番号
武器攻撃力上昇量
防具防御力上昇量
int UseSwitch 0:使用できないアイテム 1:使用できるアイテム
int DropSwitch 0:捨てられないアイテム 1:捨てられるアイテム
String ItemName アイテムの名前

end
"end" アイテムデータ定義部終了のキーワード


プレイヤーデータ
Player
"Player" プレイヤーデータ定義部開始のキーワード

PlayerName HP Attack Defence Weapon DefendArm MaxLebel
Label HP attack defence Experience - (MaxLebel-1)個
String PlayerName プレイヤーの名前
int HP 初期HP
int Attack 初期攻撃力
int Defence 初期防御力
int Weapon 初期装備武器番号
int DefendArm 初期装備防具番号
int MaxLebel レベルの最大値
int Lebel レベル
int HP レベルアップで上昇するHP
int attack レベルアップで上昇する攻撃力
int defence レベルアップで上昇する防御力
int Experience レベル到達に必要な経験値


モンスターデータ
Monster
"Monster" モンスターデータ定義部開始のキーワード

MonsterLabel MonsterName HP attack defence experience NumberOfItem
ItemLabel DropProbability - NumberOfItem個
int MonsterLabel モンスター番号
String MonsterName モンスターの名前
int HP モンスターのHP
int attack モンスターの攻撃力
int defence モンスターの防御力
int experience モンスターを倒すと得られる経験値
int NumberOfItem モンスターを倒すと得られるアイテムの種類数
int ItemLabel アイテム番号
int DropProbability アイテムを落とす確率(%)

end
"end" モンスターデータ定義部終了のキーワード


イメージ番号の並び順
横にN1個、縦にN2個並んでいる場合
0 1 ...... N1-1
N1 N1+1 ...... 2N1-1
N1(N2-1) N1(N2-1)+1 ...... N1N2-1

今回の場合はN1=5、N2=2で
0 1 2 3 4
5 6 7 8 9
 
オーク バンパイアバット スケルトン ゾンビ Gアント
Sアント Qアント レッサーバンパイア ウェアウルフ ヴァンパイア



W.C.P.トップページに戻る
シムやのトップページに戻る