density=1 // cant walk through him
set src in oview(1)
var/I=input("I can make you a guild for you if you got any guild symbols?","Guild chief") in list ("Trade 'Guild symbol'","Nothink")
if("Trade 'Guild symbol'") // taking a rest
usr<<"Here you go"
for (o as obj in M.contents)
usr<<"You just created your guild"
usr<<"You dont have a 'Guild symbol'"
if("Nothink")usr<<"Maybe another time."
Make_Guild(var/Guildmaking as text)//The var/Guildmaking as text means whatever the player enters is what the variable Guildmaking is
if(Guilds.Find(ckey(Guildmaking)))//Next we check if the guild name is taken
alert("There is already a guild named this. Pick another name.")//If it is we tell them that is is and to pick another name
Guilds += ckey(Guildmaking)//If its not we add the new guild's name to the list of created guilds
src.guild = "[Guildmaking]"//Now we make the players guild variable equal the new quilds name (This will be used when inviting a player to the guild)
src.verbs += /mob/Guild/verb/Guild_Chat//We give the player the new guild verbs
src.verbs += /mob/Guild/verb/Guild_Members//We give the player the new guild verbs
src.verbs += /mob/Guild/verb/Guild_Invite//We give the player the new guild verbs
src.verbs += /mob/Guild/verb/Guild_Disband//We give the player the new guild verbs
usr << "You already have a guild."
The proc works not fully its supposed to let you type the guildname but it doesnt it just creates the guild with your own char name as guild name. Does someone know how to fix this please?