-
Notifications
You must be signed in to change notification settings - Fork 0
/
DragonCrawl3.ifd
180 lines (151 loc) · 4.09 KB
/
DragonCrawl3.ifd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
%Interactive Fiction Document Format v2: by Daniel A. Ray
%this is a comment, any line that begins with % is ignored, comments must be on their own line
% <areas>...</areas>, is the area definition block
% <links>...</links>, define which areas (listed in same order) links to which other areas
% each room link is listed in room order u,d,l,r
% <items>...</items>, is the item definition block
% Additional Notes: the player begins in area #1
% IMPORTANT NOTE: Comma Separated Lists are not allowed to contain spaces (x,x,x NOT x, x, x)
<game>
<ptype>hsps</ptype>
<lives>3</lives>
% Area1
<area>
<desc>You're lost in the Heart of the Dungeon. Don't get eaten.</desc>
<feats>0,0</feats>
</area>
<item>
<use>
<name>Silver Bell</name>
<desc>It's a simple silver bell. Could it be a dinner bell?</desc>
<star>1</star>
%message to user upon use
<actmess>You ring the bell. The four doors in this room click unlocked simultaneously with a deafening clatter. Super unsettling. </actmess>
%the room in which the item is active
<actar>1</actar>
%each triple (group of 3 lines) represents an effect when this item is used
<rule>1,u,2</rule>
%thus begins the next use effect triple
<rule>1,d,6</rule>
%and here are two more effect triples
<rule>1,l,3</rule>
<rule>1,r,4</rule>
</use>
</item>
<item>
<armor>
<name>Armor</name>
<life>35</life>
<star>1</star>
</armor>
</item>
<item>
<basic>
<name>Letter</name>
<desc>This is a note. The note reads: "This is an interactive fiction game. Try typing help for a list of commands. Be cool."</desc>
<star>1</star>
</basic>
</item>
% Area2
<area>
<desc>Castle Tower. Dang you hurting your life!!!
<feats>0,0</feats>
</area>
<item>
<consume>
<name>Bronze Chalice</name>
<desc>This chalice appears to have an elixer in it.</desc>
<star>2</star>
<actmess>You feel stronger!</actmess>
<actar>1</actar>
<effect>1,10</effect>
</consume>
</item>
%This is a comment just as an example
<item>
<consume>
<name>Fire Extenguisher</name>
<desc>It's used to put out fires.</desc>
<star>2</star>
<actmess>What were you thinking?</actmess>
<actar>2</actar>
<effect>0,25</effect>
</consume>
</item>
<item>
<basic>
<name>Nest</name>
<desc>It's a nest. It's pretty nasty.</desc>
<star>2</star>
</basic>
</item>
<item>
<basic>
<name>Poop</name>
<desc>I mean, do Bears poop in the woods? Well... where do you think Dragons poop?</desc>
<star>2</star>
</basic>
</item>
<item>
<consume>
<name>Dragon's Breakfast</name>
<desc>It's a hot mess.</desc>
<star>2</star>
<actmess>Eating this was maybe a bad idea. I don't know if that's going to work out for you.</actmess>
<actar>0</actar>
<effect>0, 10</effect>
</consume>
</item>
%Here's another comment.
% Area3
<area>
<desc>DRAGON!!! You made a FANTASTIC snack!</desc>
<feats>1,0</feats>
</area>
% Area4
<area>
<desc>Dragon's Lair: At least there's no dragon here.</desc>
<feats>0,0</feats>
</area>
<item>
<basic>
<name>Golden Key</name>
<desc>It is a golden key. Keys have obvious uses, but this one is shaped like a red-herring.</desc>
<star>4</star>
</basic>
</item>
% Area5
<area>
<desc>Dragon's Breath: The air is so noxious here you can barely breath, or even SEE!</desc>
<feats>0,0</feats>
</area>
<item>
<use>
<name>Trophy</name>
<desc>It's a trophy that says, "#1 Boss" on it.</desc>
<star>5</star>
<actmess>The trophy evaporates into thin air. There was magic in it, it seems. The door down from this room opens.</actmess>
<actar>6</actar>
<rule>6,d,7</rule>
</use>
</item>
% Area 6
<area>
<desc>Just another empty room.</desc>
<feats>0,0</feats>
</area>
% Area 7
<area>
<desc>Escape! Fresh air! You didn't die! Great. Good for you.</desc>
<feats>0,1</feats>
</area>
<links>
<linkset>1,1,1,1</linkset>
<linkset>2,1,2,2</linkset>
<linkset>3,3,3,3</linkset>
<linkset>4,4,1,5</linkset>
<linkset>5,5,4,5</linkset>
<linkset>1,6,6,6</linkset>
<linkset>6,7,7,7</linkset>
</links>
</game>