ID:146697
 
Code:
obj/verb    
get()
set src in oview(0)
if(Getable==1)
set hidden = 0
set category="Social"
src.loc = usr
if(Getable==0)
set hidden = 1
else
return


Problem description:

I'm trying to make it so the verb for get() is hidden if the object is not obtainable, but if it is i want the verb to be displayed. Here the get verb isnt being shown if it is obtainable... meaning its just staying hidden to pick anything up. (i'm doing this because i made my NPC's all objects so the summons list wont be a huge list of every NPC on the map, quite convienent)


any suggestions?



obj
thing1
icon = ''
icon_state = ""
verb
get()
set src in oview(1)
usr.contents += src
thing2
icon = ''
icon_state = ""
verb
get()
set src in oview(1)
usr.contents += src
thing3
icon = ''
icon_state = ""


I'm not a great coder but i do this and it works fine
In response to tidus123
I knew i could do it like that, but... the other way protrains to all obj's and it would be a lot less coding if i did it to all, instad of just the ones i want to be able to get.... **cant explain well**

I thank you for you suggestion!



Anyone else know what to do to the origanel code?