mob
var/list/BACKPACK=list()
var/tmp/row=1
var/tmp/col=1
var/tmp/current=1
var
BP[10]
proc
UpdateBackpack()
for(var/obj/O in BACKPACK)
winset(src, "backpack", "current-cell=[col],[row]")
NEXT:
if(BP["[current]"] == TRUE)
++current
++row
++col
if(row == 10 || col == 10)
alert("Too much in invintory.","Error")
return
else
goto NEXT:
else
src << output(O,"BP:[col],[row]")
The problem? It does nothing...I test it by adding an object to the BACKPACK list and calling the proc at mob/Login(), can anyone please help me? The skin reference is no help anymore, I just can't get this...
Thanks.
Also: no damn idea what you're trying to do there.
This is what I'd do:
Also: convention is that all-caps variables are constants.