ID:174606
 
I need a little bit of help on this one. This is hard to explain, but I'll give an example.

-You buy some clothes. "Inventory" pops up (stat-panel).

-Also, "Items" pops up (verb-panel).

-I want it to be only accessable through the statpanel(by right clicking and selecting 'wear' off the menu).

So in other words, I don't want the "Items" verb panel to show up, and the objects verbs need to be accessable through the stat panel. How would I setup this object?

Any advice?
-Camaro-
get rid of there verb panel? that should prolly work, although im not sure if you wanted that... I'd tell you how but i don't really know...
For the verbs on the object just delete any of the lines that say:category = "Inventory"

Example

obj
boots
name = "Boots"
category = "Inventory"// <-- remove this
verb
wear()
// Wear coding

That way displaying their contents in a statpanel, right clicking the object will show the verbs for that object(Wear).

Hope that helps.

James
In response to SSJ2GohanDBGT
That did get rid of the verb panel, except now the verbs show up in the default panel 'commands'. I only want it accessable by right clicking the obj in the stat panel. Maybe some code will help you..
obj/shirt
icon = 'shirt.dmi'
layer=MOB_LAYER+10
var/wearing = 0
verb
Drop()
if(wearing == 1)
usr<<"You're wearing the clothes."
return
else
set src in usr
src.Move(usr.loc)
usr << "You drop [src]."
Get()
set src in oview(1)
Move(usr)
usr.contents += src
Wear()
if(src.wearing==0)
src.wearing=1
usr.overlays+='shirt.dmi'
usr<<"You wear the [src]"
else
src.wearing=0
usr.overlays -= 'shirt.dmi'
usr<<"You remove the [src]"

Hope this helps.

-Camaro-
In response to Redslash
try doing this...

obj/shirt
icon = 'shirt.dmi'
layer=MOB_LAYER+10
var/wearing = 0
verb
Drop()
set category = "stats"//<--or what ever the stat panel is called
if(wearing == 1)
usr<<"You're wearing the clothes."
return

//Blah blah..other verbs..blah(do the same)
In response to Evil Guy
That idea sounded good, except it makes a new verb panel called Inventory along with the stat panel.

Any more ideas?

-Camaro-
In response to Camaro
set category = null

That 'should' work, im not sure if when you right click the menu thing will appear however.
In response to Wanabe
Haha, that did work. I just don't see why I didn't even try that @_@. Thanks :-D

-Camaro-
In response to Camaro
Camaro wrote:
Haha, that did work. I just don't see why I didn't even try that @_@. Thanks :-D

-Camaro-

Set hidden = 1 would also work in your case, for future reference.

~>Volte
In response to Volte
Nope, when I used set hidden, it hid the whole verb. I wasn't able to access the verb from the statpanel. That was the first thing I've tried ;).

-Camaro-
In response to Camaro
Camaro wrote:
Nope, when I used set hidden, it hid the whole verb. I wasn't able to access the verb from the statpanel. That was the first thing I've tried ;).

-Camaro-

Oh. I suppose I just didn't understand your question, then. :)

~>Volte