aboutsummaryrefslogtreecommitdiff
path: root/gamemode/itemsystem/quest.lua
blob: d75c42c96b0162f1faafee35ee5a0949c1861150 (plain)
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
--[[
	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)