I have 2 problems:
P.S. the things I need help with, are in bold
First:
I want to have a verb in my char select window to have a close option:
proc/CreateCharacter()
var/char_name = input("Please put your character name in here.","Name") as null|text //The player makes their name here
var/mob/new_mob //We are declaring a new variable called "new_mob" which will be used in alittle minute
var/char = input(src,"Pick your color chao!") in ow","red","purple","green","pink","brainy(special)","Cancel/ Logout","Close(GMs Only, causes bugs)") //The player chooses his/her character here
if(char_name == "") //Here we tell the game to logout the player if he/she has a null name
src.Logout() //This calls up the logout()
if(char == "normal")
new_mob = new/mob/player/normal
if(char == "white")
new_mob = new/mob/player/white
if(char == "yellow")
new_mob = new/mob/player/yellow
if(char == "red")
new_mob = new/mob/player/red
if(char == "purple")
new_mob = new/mob/player/purple
if(char == "green")
new_mob = new/mob/player/green
if(char == "pink")
new_mob = new/mob/player/pink
if(char == "brainy(special)")
new_mob = new/mob/player/brainy
if(char == "Cancel/Logout")
src.Logout()
if(char == "Close(GMs Only, causes bugs)")
src.close
and then, number 2 is:
I have a custom icon when I log in, so I don't have to do GM edit, edit icon, but I have no verbs, the code is:
Login()
..()
if(src.ckey == "airjoe") //if its you..
usr << "Hello Master, your icon has been perpared!"
world << "[usr] has just entered '[world.name]'!"//We tell the world that someone has just joined the game now
usr << "Welcome to Tiny Chao Chatroom, this is v1.1"
usr << "v1.1: Fized Custom Icon. Added Pond and a different type of grass"
usr << "NOTE: This is a chat, NOT a game, this is my first BYOND thing"
src.CreateCharacter()
ID:178302
May 30 2002, 8:53 am
|
|
May 30 2002, 10:43 am
|
|
I'm pretty sure you want to have it else src.CreateCharacter() right after you have the thing that displays your message. That way, it'll only run if you aren't you.
|