when you log into my game you can be a couple of classes.but i want to have one thats just hidden so only I can get it.Like how would i make a differnt log in system that only i get when i log in?
ID:268107
Mar 14 2004, 3:32 pm
|
|
Mar 16 2004, 11:48 am
|
|
You could do something like:
|
In response to Nadrew
|
|
proc/CreateCharacter()
Start var/mob/new_mob //We are declaring a new variable called "new_mob" which will be used in alittle minute var/char_name = input("Put your OOC name here.","Name") as null|text //The player makes their name here if(char_name == null) //Here we tell the game to make the player rename his/her character if they did not pick a name if(src.key == "[your_key]") classes.Add("Golbez") //This is your special class goto Start //This makes us go back to the "Start" if the characters name is null var/char = input(src,"Pick your Character Class!") in list("Male_Warrior","Female_Warrior","Renegade_Male","Renega de_Female","ShapeShifter","Golbez","Elf","None") //The player chooses his/her character here switch(char) else goto Start var/char = input(src,"Pick your Character Class!") in list("Male_Warrior","Female_Warrior","Renegade_Male","Renega de_Female","ShapeShifter","Elf","None") //The player chooses his/her character here switch(char) if("Male_Warrior") new_mob = new /mob/MaleWarrior new_mob.loc = locate(10,91,2) if("Female_Warrior") new_mob = new /mob/FemaleWarrior new_mob.loc = locate(10,91,2) if("Renegade_Male") new_mob = new /mob/RenegadeMale new_mob.loc = locate(10,91,2) if("Golbez") new_mob = new /mob/Golbez new_mob.loc = locate(10,91,2) if("Renegade_Female") new_mob = new /mob/RenegadeFemale new_mob.loc = locate(10,91,2) if("ShapeShifter") new_mob = new /mob/ShapeShifter new_mob.loc = locate(10,91,2) if("Elf") new_mob = new /mob/Elf new_mob.loc = locate(4,4,2) if("None") src.Logout() new_mob.name = char_name src.client.mob = new_mob ..() del(src) I added this part to it and it dont work if(src.key == "[your_key]") classes.Add("Golbez") //This is your special class goto Start //This makes us go back to the "Start" if the characters name is null var/char = input(src,"Pick your Character Class!") in list("Male_Warrior","Female_Warrior","Renegade_Male","Renega de_Female","ShapeShifter","Golbez","Elf","None") //The player chooses his/her character here switch(char) else |
In response to Un-Touchable
|
|
Wow, a lot of errors in that code.
|
In response to Non-PC
|
|
Non-PC wrote:
Wow, a lot of errors in that code. I agree. You have a lot of unfished code there. --SSJ4_Gohan_Majin |