aboutsummaryrefslogtreecommitdiff
path: root/gamemode/itemsystem
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/itemsystem')
-rw-r--r--gamemode/itemsystem/quest.lua62
1 files changed, 62 insertions, 0 deletions
diff --git a/gamemode/itemsystem/quest.lua b/gamemode/itemsystem/quest.lua
new file mode 100644
index 0000000..d75c42c
--- /dev/null
+++ b/gamemode/itemsystem/quest.lua
@@ -0,0 +1,62 @@
+--[[
+ Generic item for creating quests
+]]
+
+local item = {}
+local strikethoughmap = {
+ a = "a̶",
+ b = "b̶",
+ c = "c̶",
+ d = "d̶",
+ e = "e̶",
+ f = "f̶",
+ g = "g̶",
+ h = "h̶",
+ i = "i̶",
+ j = "j̶",
+ k = "k̶",
+ l = "l̶",
+ m = "m̶",
+ n = "n̶",
+ o = "o̶",
+ p = "p̶",
+ q = "q̶",
+ r = "r̶",
+ s = "s̶",
+ t = "t̶",
+ u = "u̶",
+ v = "v̶",
+ w = "w̶",
+ x = "x̶",
+ y = "y̶",
+ z = "z̶"
+}
+
+item.Name = "Quest"
+
+item.Tooltip = "The quest item"
+
+item.Arcs = {}
+item.ArcsCompleted = 0
+
+function item:GetText()
+ local text = {}
+ for i=1,self.ArcsCompleted do
+ local thisarctxt = self.Arcs[i]:GetText()
+ for k,v in pairs(strikethoughmap) do
+ print("Trying to strike though:",v)
+ end
+ end
+
+end
+
+function item:Serialize()
+
+end
+
+function item:DeSerialize()
+
+end
+
+local itm = nrequire("item.lua")
+itm.RegisterItem(item)