aboutsummaryrefslogtreecommitdiff
path: root/gamemode/itemsystem/quest
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/itemsystem/quest')
-rw-r--r--gamemode/itemsystem/quest/rougebadge.lua78
-rw-r--r--gamemode/itemsystem/quest/rougebook.lua138
-rw-r--r--gamemode/itemsystem/quest/togglechip.lua50
3 files changed, 133 insertions, 133 deletions
diff --git a/gamemode/itemsystem/quest/rougebadge.lua b/gamemode/itemsystem/quest/rougebadge.lua
index df5a149..2b7d0a0 100644
--- a/gamemode/itemsystem/quest/rougebadge.lua
+++ b/gamemode/itemsystem/quest/rougebadge.lua
@@ -1,39 +1,39 @@
---[[
- An example item
-]]
-do return end
-local item = {}
-
---Required, a name, all item names must be unique
-item.Name = "Rouge Newbie Badge"
-
---Optional, a tooltip to display when hovered over
-item.Tooltip = "A tiny peice of metal, kinda looks like a dagger."
-
---Required Returns the data needed to rebuild this item, should only contain the minimum data nessessary since this gets sent over the network
-item.Serialize = function(self)
- print("Trying to serailize!")
- return ""
-end
-
---Required, Rebuilds the item from data created in Serialize, if the item is different from the "main" copy of the item, it should retun a tabl.Copy(self), with the appropriate fields set.
-item.DeSerialize = function(self,string)
- print("Trying to deserialize!")
- return self
-end
-
---Optional, when the player clicks this item, a menu will show up, if the menu item is clicked, the function is ran. This is all run client side, so if you want it to do something server side, you'll need to use the net library. Remember that items are in the shared domain, so you can define what it does in the same file!
-function item.GetOptions(self)
- local options = {}
- options["test"] = function() print("You pressed test!") end
- options["toste"] = function() print("You pressed toste!") end
- return options
-end
-
---Required, the shape of this item in a backpack.
-item.Shape = {
- {true}
-}
-
-
-nrequire("item.lua").RegisterItem(item)
+-- --[[
+-- An example item
+-- ]]
+-- do return end
+-- local item = {}
+--
+-- --Required, a name, all item names must be unique
+-- item.Name = "Rouge Newbie Badge"
+--
+-- --Optional, a tooltip to display when hovered over
+-- item.Tooltip = "A tiny peice of metal, kinda looks like a dagger."
+--
+-- --Required Returns the data needed to rebuild this item, should only contain the minimum data nessessary since this gets sent over the network
+-- item.Serialize = function(self)
+-- print("Trying to serailize!")
+-- return ""
+-- end
+--
+-- --Required, Rebuilds the item from data created in Serialize, if the item is different from the "main" copy of the item, it should retun a tabl.Copy(self), with the appropriate fields set.
+-- item.DeSerialize = function(self,string)
+-- print("Trying to deserialize!")
+-- return self
+-- end
+--
+-- --Optional, when the player clicks this item, a menu will show up, if the menu item is clicked, the function is ran. This is all run client side, so if you want it to do something server side, you'll need to use the net library. Remember that items are in the shared domain, so you can define what it does in the same file!
+-- function item.GetOptions(self)
+-- local options = {}
+-- options["test"] = function() print("You pressed test!") end
+-- options["toste"] = function() print("You pressed toste!") end
+-- return options
+-- end
+--
+-- --Required, the shape of this item in a backpack.
+-- item.Shape = {
+-- {true}
+-- }
+--
+--
+-- nrequire("item.lua").RegisterItem(item)
diff --git a/gamemode/itemsystem/quest/rougebook.lua b/gamemode/itemsystem/quest/rougebook.lua
index 409948a..302f919 100644
--- a/gamemode/itemsystem/quest/rougebook.lua
+++ b/gamemode/itemsystem/quest/rougebook.lua
@@ -1,69 +1,69 @@
---[[
- A quest item for the prayer book quest
-]]
-do return end
-local item = {}
-
-item.Name = "Orders of the Silent Circle"
-
-item.Serialize = function(self)
- print("Trying to serailize!")
- return ""
-end
-
-item.DeSerialize = function(self,string)
- print("Trying to deserialize!")
- return self
-end
-
-item.Shape = {
- {true,true},
- {true,true},
-}
-
-local rougeadvice = {
- "He who refuses to trim his beard will find himself in a hairy situation.",
- "You'll get tired defending from a man in a car",
- "You'll get exhaused attacking a man in a car.",
- "Sex is not the answer, it is the question. And the answer is 'yes'.",
- "The 'Darkest Hour' is when you can't find the matches.",
- "If you eat beans before church, you will sit in your own pew.",
- "He who seeks challenges will be puzzeled.",
- "He who fishes in another man's well is likely to catch crabs.",
- "Enjoy masturbation, it's sex with someone you love.",
-}
-
-local lhint = 1
-
-function item.GetOptions(self)
- local options = {}
- options["Read"] = function()
- local readframe = vgui.Create( "DFrame" )
- readframe:SetPos( ScrW()/2 - 100, ScrH()/2 - 100)
- readframe:SetSize(200,200)
- readframe:SetTitle("Orders of the Silent Circle")
- readframe:MakePopup()
-
-
- local readpanel = vgui.Create( "DPanel", readframe )
- readpanel:SetPos( 5, 30 )
- readpanel:SetSize( 190, 170 )
- function readpanel:Paint(w,h) end
-
-
- local readtext = vgui.Create( "DLabel", readpanel )
- readtext:SetPos( 40, 40 )
- readtext:SetText(rougeadvice[lhint])
- readtext:SetDark()
- readtext:Dock(FILL)
- readtext:SetWrap(true)
- lhint = (lhint % #rougeadvice) + 1
- end
- return options
-end
-
-item.onDropped = function(self, ent)
- ART.ApplyPAC(ent,"book1")
-end
-
-nrequire("item.lua").RegisterItem(item)
+-- --[[
+-- A quest item for the prayer book quest
+-- ]]
+-- do return end
+-- local item = {}
+--
+-- item.Name = "Orders of the Silent Circle"
+--
+-- item.Serialize = function(self)
+-- print("Trying to serailize!")
+-- return ""
+-- end
+--
+-- item.DeSerialize = function(self,string)
+-- print("Trying to deserialize!")
+-- return self
+-- end
+--
+-- item.Shape = {
+-- {true,true},
+-- {true,true},
+-- }
+--
+-- local rougeadvice = {
+-- "He who refuses to trim his beard will find himself in a hairy situation.",
+-- "You'll get tired defending from a man in a car",
+-- "You'll get exhaused attacking a man in a car.",
+-- "Sex is not the answer, it is the question. And the answer is 'yes'.",
+-- "The 'Darkest Hour' is when you can't find the matches.",
+-- "If you eat beans before church, you will sit in your own pew.",
+-- "He who seeks challenges will be puzzeled.",
+-- "He who fishes in another man's well is likely to catch crabs.",
+-- "Enjoy masturbation, it's sex with someone you love.",
+-- }
+--
+-- local lhint = 1
+--
+-- function item.GetOptions(self)
+-- local options = {}
+-- options["Read"] = function()
+-- local readframe = vgui.Create( "DFrame" )
+-- readframe:SetPos( ScrW()/2 - 100, ScrH()/2 - 100)
+-- readframe:SetSize(200,200)
+-- readframe:SetTitle("Orders of the Silent Circle")
+-- readframe:MakePopup()
+--
+--
+-- local readpanel = vgui.Create( "DPanel", readframe )
+-- readpanel:SetPos( 5, 30 )
+-- readpanel:SetSize( 190, 170 )
+-- function readpanel:Paint(w,h) end
+--
+--
+-- local readtext = vgui.Create( "DLabel", readpanel )
+-- readtext:SetPos( 40, 40 )
+-- readtext:SetText(rougeadvice[lhint])
+-- readtext:SetDark()
+-- readtext:Dock(FILL)
+-- readtext:SetWrap(true)
+-- lhint = (lhint % #rougeadvice) + 1
+-- end
+-- return options
+-- end
+--
+-- item.onDropped = function(self, ent)
+-- ART.ApplyPAC(ent,"book1")
+-- end
+--
+-- nrequire("item.lua").RegisterItem(item)
diff --git a/gamemode/itemsystem/quest/togglechip.lua b/gamemode/itemsystem/quest/togglechip.lua
index 52e69aa..d6dae50 100644
--- a/gamemode/itemsystem/quest/togglechip.lua
+++ b/gamemode/itemsystem/quest/togglechip.lua
@@ -1,25 +1,25 @@
---[[
- A toggle chip (quest item) for subterr_generator quest
-]]
-do return end
-local item = {}
-
-item.Name = "Toggle Chip"
-
-item.Serialize = function(self)
- print("Trying to serailize!")
- return ""
-end
-
-item.DeSerialize = function(self,string)
- print("Trying to deserialize!")
- return self
-end
-
-item.Shape = {
- {true,true},
- {true,true},
-}
-
-print("Hello from togglechip.lua")
-nrequire("item.lua").RegisterItem(item)
+-- --[[
+-- A toggle chip (quest item) for subterr_generator quest
+-- ]]
+-- do return end
+-- local item = {}
+--
+-- item.Name = "Toggle Chip"
+--
+-- item.Serialize = function(self)
+-- print("Trying to serailize!")
+-- return ""
+-- end
+--
+-- item.DeSerialize = function(self,string)
+-- print("Trying to deserialize!")
+-- return self
+-- end
+--
+-- item.Shape = {
+-- {true,true},
+-- {true,true},
+-- }
+--
+-- print("Hello from togglechip.lua")
+-- nrequire("item.lua").RegisterItem(item)