usr.contents -= /obj/stuff/bottle
right?
but it doesnt seem to be working?
ID:170689
![]() Dec 24 2004, 9:03 am
|
|
![]() Dec 24 2004, 9:09 am
|
|
Try searching for the obj in the contents and then deleting it.
|
mob This should work, it wasn't tested though. That should help you figure out what to do...you might want to use a for loop instead but i'm not exactly sure if that would be best. |
like this?
obj |
obj That should work good. |
bah! When using truth/false statements don't use 1 or 0 :
if(blah == 1) or if(blah == 0) do: if(blah) or if(!blah) |
Try not to use usr in the proc. And you don't have to put the () in the del (src). And since after drinking the potion, you are deleting the object so there is no point to make the drink var.
obj |
A) it's a verb, usr is perfectly normal there, there is no proc
B) i made the var just in case, you never know, i'll do some test, i think the code was fine >_> |
N1ghtW1ng wrote:
mob This should work, it wasn't tested though. It won't work, because T is null until you set it to an object. What you need is to use locate(): var/obj/twig/T = locate() in src Lummox JR |