ID:140327
 
Code:
mob/proc/GetMenus()
if(src.race == "Shinigami")
if(src.iscap == 1)
src.verbs += /SHINIGAMI/verb/Announce2Squad
src.verbs += /SHINIGAMI/verb/GrantLut
src.verbs += /SHINIGAMI/verb/Retire
winclone(src, "race_menu1", "race_menu2")
winclone(src, "race_menu1", "race_menu3")
winclone(src, "race_menu1", "race_menu4")
winset(src, "race_menu", "is-disabled=false;name=Captian")
winset(src, "race_menu1", "name=Announce+To+Squad;command=Announce2Squad")
winset(src, "race_menu2", "name=Grant+Lieutenant;command=GrantLut")
winset(src, "race_menu3", "name=''")
winset(src, "race_menu4", "name=Retire;command=Retire")


Problem description:
I tested it on Login() by setting my race to Shinigami, and iscap to 1, all I see is the menu: "Captian" with ONE item: "Announce to Squad"...where are the others??
Thanks!

~Hi1
Fixed it, I had to add the parent= param and get rid of winclone() altogether:

            src.verbs += /SHINIGAMI/verb/Announce2Squad
src.verbs += /SHINIGAMI/verb/GrantLut
src.verbs += /SHINIGAMI/verb/Retire
winset(src, "race_menu", "is-disabled=false;name=Captian")
winset(src, "race_menu1", "name=Announce+to+Squad;command=Announce2Squad;index=1")
winset(src, "race_menu2", "parent=race_menu;name=Grant+Lieutenant;command=GrantLut;index=4")
winset(src, "race_menu3", "parent=race_menu;name=''")
winset(src, "race_menu4", "parent=race_menu;name=Retire;command=Retire")
In response to Hi1
you can also use the other format for winset, which i find easier

winset(src,"race_menu.race_menu4","blah blah blah")
put in "parent.child" in the second argument. saves a little bit of space too
In response to Hi1
Just as a heads-up, "Captain" is spelled incorrectly in your menu.

Also just for future reference, skins can treat " and ' quotes differently, since they think the single quote is for a file. When setting a name parameter the difference is moot but as a general rule you're safer using " than '. Of course you can probably also skip the '' entirely when you want that parameter to be blank.

Lummox JR