Class
parent_type = /atom
var
Attack
Defense
Magic
Speed
Umbrella_Mage
desc = "The umbrella mage wields an umbrella rather than a staff. \
Their magic "
mob/verb
Info(Class/C)
set hidden = 1
winset(usr,"ClassInfo.Description.text",C.desc)
winshow(usr,"ClassInfo",1)
Problem description:
Button Command: Info Class/Umbrella_Mage
Runtime Error:
Sorry, the following is not valid: Class/Umbrella_Mage
usage: Info mob|obj|turf|area
Ignore what the desc is, its incomplete. When i click the button that runs Info Class/Umbrella_Mage, instead of showing the window and editting the label called Description, i get the runtime error shown above. Any ideas what i have done wrong?
If you want to do this, you either need an existing instance of the object, or to store the data somewhere else.
Also, your usage of winset is incorrect. Look it up in the reference, both the skin and the DM versions.