Clan Datum Problem. in Developer Help
|
|
Code:
clan var Leader Name Desc list/Members = list() proc/CreateClan(mob/M, name, desc) src.Name = name src.Leader = M src.Desc = desc M<<output("Your Clan, [name], has been successfully created.","messages") mob/verb/Create_Clan() var/K = input("What would you like the name of your clan to be?") var/L = input("What is your clan's description? \n You can leave this blank for no Description.") if(K != "" && lentext(K) <= 3) CreateClan(usr, K, L)
|
Problem description:
This is my first time making my own datum. As far as I know, I specified everything correctly in the datum, but I do not know what I should put next to CreateClan(usr, K, L) to make it work. I get this error:
Codes\Clans.dm:16:error: CreateClan: undefined proc
|