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-
ID:174606
![]() Aug 2 2003, 10:01 pm
|
|
![]() Aug 2 2003, 10:17 pm
|
|
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 |
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 |
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) |
That idea sounded good, except it makes a new verb panel called Inventory along with the stat panel.
Any more ideas? -Camaro- |
set category = null
That 'should' work, im not sure if when you right click the menu thing will appear however. |
Camaro wrote:
Haha, that did work. I just don't see why I didn't even try that @_@. Thanks :-D Set hidden = 1 would also work in your case, for future reference. ~>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- |