ID:138957
 
Code:
obj/Vleader
invisibility = 101
verb/Create_Truce()
set invisibility = 0
set category = "Village Commands"


Problem description:

According to the DM reference, setting an obj's invisibility to 101 will make it completely hidden from everything. So, you can set it to invisibility = 101 should you wish to use an obj as a verb container for instance. However, doing this just makes the verbs the obj contains invisible for me. I even set the verbs to 0 invisibility, and they are still not see-able.
Does anyone know if I am doing this wrong, or if something else is up?

EDIT : Ignore the dodgy indentation here, I messed up the copy paste lol. It is actually indented as it should be in the code.
I think setting the category to null is used to hide verbs. The invisible setting is for objects, at least that's all i've seen it used for.
To completely hide mobs, use invisibility. To completely hide verbs, use the "set hidden" variable.
If you're looking to make a verb container, you would want to make use of 'typesof()'


As in,

someones.verbs+=typesof(/obj/Vleader/verb);


and to remove (I believe, correct me if I'm wrong someone)

someones.verbs-=typesof(/obj/Vleader/verb);