Alright, i have 3 slots as inventories able to hold 3 items, the vars are Slot1 Slot2 Slot3. Well what im trying to do is check if slot1 is empty, slot2 not empty and make slot2's obj goto slot1! But i get a runtime error.
mob/proc/CheckInv()
if(!src.Slot1 && src.Slot2)
if(src.Item2 == "MRX")
for(var/obj/Hud/MRXInv2/M in src.client.screen)
new/obj/Hud/MRXInv(src.client.screen)
del(M)
spawn(5) src.CheckInv()
ID:174895
Jul 9 2003, 2:05 pm
|
|
Jul 9 2003, 9:06 pm
|
|
You'd be much better off using a list for this.
|