ID:264867
 
Code:
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?

Class/Umbrella_Mage isn't an atom (in the way you're using it with the verb). It isn't even a typepath. It's nothing. Some undefinable symbol. What you want is something like a class with static data. BYOND doesn't have this.

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.