ID:180758
 
Make it so you cant pick up an obj?
Thanx
Shane
On 2/24/01 11:06 am Shane wrote:
Make it so you cant pick up an obj?

just declare it above the Get() verb, like this:

obj
statue //not supposed to be picked up.
bla bla

verb
get()
your standard get verb

the rest of your objs...



hope that helps ;>
In response to Kaidorin
So all you do is.....

Code:

obj
grass
statue


obj
verb
Get()
set src in oview(0)
usr << "You get [src]"
Move(usr)

Drop()
usr << "You drop [src]"
Move(usr.loc)
In response to Shane
On 2/24/01 11:25 am Shane wrote:
So all you do is.....

Code:

obj
grass
statue


obj
verb
Get()
set src in oview(0)
usr << "You get [src]"
Move(usr)

Drop()
usr << "You drop [src]"
Move(usr.loc)

Nope, actually, that's incorrect. (Sorry, Kaidorin. =)

What you'd need to do is add code in obj/grass/statue that says this:

obj/grass/statue
New()
..()
src.verbs -= /obj/verb/Get
In response to Spuzzum
Nope, actually, that's incorrect. (Sorry, Kaidorin. =)

damn
In response to Kaidorin
On 2/24/01 12:36 pm Kaidorin wrote:
Nope, actually, that's incorrect. (Sorry, Kaidorin. =)

doesn't my version work?

Nope... regardless of where you put an object in the code, if a subclass accesses it, it'll inherit it. So if you were strange enough you could put all subclasses at the top of your code, then all superclasses near the bottom, then all the subclasses would have the properties of the superclasses.
In response to Spuzzum
Nope... regardless of where you put an object in the code, if a subclass accesses it, it'll inherit it. So if you were strange enough you could put all subclasses at the top of your code, then all superclasses near the bottom, and they'd all the subclasses would have the properties of the superclasses.

weird, but I tested and you are correct ;>