statpanel("Inventory")
for(var/obj/O in src.contents)
O.checkedyet=0
for(var/obj/O in src.contents)
if(O.checkedyet==0)
O.checkedyet=1
var/amount=1
if(O.suffix=="Equipped") goto alreadysuffixed
for(var/obj/E in src.contents)
if(O.type==E.type)
if(E.checkedyet) continue
amount++
E.checkedyet=1
O.suffix="[amount]"
alreadysuffixed
stat(O)
------------------------------------------------------
Repilcator
icon = 'Objects.dmi'
icon_state = "Replicator"
density = 1
verb
Replicate()
set src in oview(1)
switch(input("What would you like replicated?") in list("Hydrospanner","Other"))
if("Hydrospanner")
icon_state = "Replicator Activated"
sleep(3)
icon_state = "Replicator"
for(var/obj/Items/Hydrospanner/B)
src.contents += B
alert("Done")
Problem description:
I am trying to make a replicator, however the item i am trying to replicate is not going into the inventory, the top code is the inventory code i got to stack items, the bottom is the replicator, can you tell me what i am doing wrong?