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.
|
In response to N1ghtW1ng
|
|
How?
|
In response to Fraon2
|
|
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. |
In response to N1ghtW1ng
|
|
I just need a remove code, like after you use the bottle is dissapears
|
In response to Fraon2
|
|
like this?
obj |
In response to Fraon2
|
|
obj That should work good. |
In response to Zero's Baby
|
|
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) |
In response to N1ghtW1ng
|
|
i never got used to doin that, i'll do it in the future, thanks
|
In response to Zero's Baby
|
|
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 |
In response to VUnit321
|
|
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 >_> |
In response to N1ghtW1ng
|
|
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 |
In response to Lummox JR
|
|
Ah, alright thanks. I understand that now a bit better.
|