Proc wont work in Developer Help
|
|
Code:
obj GuildChief name="Guild chief" density=1 icon='sandnpc1.dmi' icon_state="sand1" verb Talk() set category="Temporary" var/mob/players/M set src in oview(1) M=usr 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") switch(I) if("Trade 'Guild symbol'") usr<<"Here you go" if(istype(usr,/mob/players)) var/obj/items/guildsymbol/o for (o as obj in M.contents) if(o.type==/obj/items/guildsymbol) del(o) usr.Make_Guild() usr<<"You just created your guild" else usr<<"You dont have a 'Guild symbol'" if("Nothink")usr<<"Maybe another time." mob proc Make_Guild(var/Guildmaking as text) if(!usr.guild) if(Guilds.Find(ckey(Guildmaking))) alert("There is already a guild named this. Pick another name.") else Guilds += ckey(Guildmaking) src.guild = "[Guildmaking]" src.verbs += /mob/Guild/verb/Guild_Chat src.verbs += /mob/Guild/verb/Guild_Members src.verbs += /mob/Guild/verb/Guild_Invite src.verbs += /mob/Guild/verb/Guild_Disband else usr << "You already have a guild."
|
Problem description:
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?
Greetings chaokai
|
You also don't actually prompt the usr to input a guild name.
Next time, try writing the program yourself instead of using one you don't understand.