We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
0 parents commit 2d7378aCopy full SHA for 2d7378a
luaquest/data.lua
@@ -0,0 +1,24 @@
1
+-- Rooms
2
+rooms = {
3
+ start = {
4
+ desc = "You are in a dark forest. Paths lead north and east.",
5
+ exits = { north = "cave", east = "river" }
6
+ },
7
+ cave = {
8
+ desc = "A spooky cave. You hear growling.",
9
+ exits = { south = "start" },
10
+ enemy = { name = "Goblin", hp = 10, attack = 2 }
11
12
+ river = {
13
+ desc = "A wide river. You see a shiny sword on the shore.",
14
+ exits = { west = "start" },
15
+ item = { name = "Shiny Sword", damage = 5 }
16
+ }
17
+}
18
+
19
+-- Player template
20
+player = {
21
+ location = "start",
22
+ hp = 20,
23
+ inventory = {}
24
0 commit comments