-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShop.dm
30 lines (25 loc) · 782 Bytes
/
Shop.dm
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
var/list/shop = list("item_id" = list())
world
New()
shop.Add("item_id/1")
shop["item_id"]["1"] = list("name","price","item","gold")
shop["item_id"]["1"]["name"] = "100 Gold two small kitchen knives."
shop["item_id"]["1"]["price"] = "100"
shop["item_id"]["1"]["item"] = list("/obj/item_knife","/obj/item_knife22")
shop["item_id"]["1"]["gold"] = 100
shop.Add("item_id/2")
shop["item_id"]["2"] = list("name","price","item","gold")
shop["item_id"]["2"]["name"] = "1000 Gold + Epic Sword"
shop["item_id"]["2"]["price"] = "1002"
shop["item_id"]["2"]["item"] = list("/obj/item_sword")
shop["item_id"]["2"]["gold"] = 1000
obj
item_sword
item_knife
item_knife22
mob/var/gold = 0
mob
Stat()
statpanel("stuffs")
stat("Gold",usr.gold)
stat(usr.contents)