Hint_giving in Developer Help
|
|
mob/var/mute = 0 var/word = "" var/guessed = 0 var/setw = 0
mob/Login() . = ..() world <<"<b>[usr] Joins" usr <<"To guess just type the word you think is the set word with say!" usr <<"Don't use bad words as the set word or your baned"
mob/Logout() . = ..() world << "<b>[usr] Leaves" del src
mob/verb/say(T as text) if(T == "[word]") if(guessed == 1) ..() else guessed = 1 world <<"<b><font size = 3>[usr] guessed the word!" world <<"<b>Please wait.." sleep(50) world <<"The word has been cleared." world <<"Someone set the word!" setw = 0 word = "" else world <<"[usr] says, [T]"
mob/verb/set_word(T as text) if(setw == 1) usr <<"The word has been set, Might wanna guess!" else if(!T) return 1 else setw = 1 word = "[T]" world <<"The word has been set by <b>[usr]</b>!! Guess away!" hint_give() proc/hint_give() if(setw == 1) sleep(520) hint_give() else sleep(520) hint_give()
I dunno what to do with the last part(also if you copy this coding, i will email dan. - warning to all the Code Thirsty New coders,)
|
|