-
Notifications
You must be signed in to change notification settings - Fork 18
/
sampleGame.xml
116 lines (116 loc) · 3.5 KB
/
sampleGame.xml
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
<?xml version="1.0" encoding="ISO-8859-1"?>
<map>
<room>
<name>Entrance</name>
<description>You find yourself at the mouth of a cave and decide that in spite of common sense and any sense of self preservation that you're going to go exploring north into it. It's a little dark, but luckily there are some torches on the wall.</description>
<item>torch</item>
<trigger>
<type>permanent</type>
<command>n</command>
<condition>
<has>no</has>
<object>torch</object>
<owner>inventory</owner>
</condition>
<print>*stumble* need some light...</print>
</trigger>
<border>
<direction>north</direction>
<name>MainCavern</name>
</border>
</room>
<room>
<name>MainCavern</name>
<description>A huge cavern surrounds you with a locked door to the north, a chest in the center, and a very dark corner...</description>
<container>chest</container>
<container>lock</container>
<creature>gnome</creature>
<border>
<direction>south</direction>
<name>Entrance</name>
</border>
<border>
<direction>north</direction>
<name>Staircase</name>
</border>
<trigger>
<command>n</command>
<type>permanent</type>
<condition>
<object>lock</object>
<status>locked</status>
</condition>
<print>lock needs a key... not to mention you don't want to get too close to that side of the room... there's something in that corner...</print>
</trigger>
</room>
<room>
<type>exit</type>
<name>Staircase</name>
<description>You found the exit!</description>
<border>
<name>MainCavern</name>
<direction>south</direction>
</border>
</room>
<item>
<name>torch</name>
<writing>next to a small button it reads "push for big flame"</writing>
<status>lit</status>
<turnon>
<print>the torch has erupted into a menacing inferno</print>
<action>Update torch to inferno</action>
</turnon>
</item>
<item>
<name>explosive</name>
<writing>turn on for boom :-). Warning! Keep away from gnomes!</writing>
<status>idle</status>
<turnon>
<print>you hear ticking...</print>
<action>Update explosive to ticking</action>
</turnon>
</item>
<item>
<name>key</name>
<writing>Exit</writing>
</item>
<container>
<name>chest</name>
<item>explosive</item>
</container>
<container>
<name>lock</name>
<status>locked</status>
<accept>key</accept>
<trigger>
<condition>
<has>yes</has>
<object>key</object>
<owner>lock</owner>
</condition>
<print>The lock drops off and the door opens</print>
<action>Update lock to unlocked</action>
</trigger>
</container>
<creature>
<name>gnome</name>
<vulnerability>explosive</vulnerability>
<attack>
<condition>
<object>explosive</object>
<status>ticking</status>
</condition>
<print>A tiny squeek is uttered from the tiny and, although scary looking, quite innocent creature before it vanishes in a very loud explosion. Tragic, but you find he was sitting on a key!</print>
<action>Add key to MainCavern</action>
<action>Delete gnome</action>
</attack>
<trigger>
<type>single</type>
<condition>
<object>torch</object>
<status>inferno</status>
</condition>
<print>You see a gnome in the dark corner... watching you with its super pointy hat...</print>
</trigger>
</creature>
</map>