I have two problems. 1 being that when u log off and then back in, all you get is black screen. The other being that my s_admin code dont work properly either, I eddited it so that it could have 2 master gms, and it works on all my other games, but after making my new creation process, it doesnt work. I will post it here, to see if anyone knows what to do. (its all indented properly in my code)
mob/creating_character
Login()
usr.loc = locate(1,1,1)
src.CreateCharacter()
proc/CreateCharacter()
var/prompt_title = "Star Wars: The New Jedi Order"
var/help_text = "Welcome to the Star Wars: The New Jedi Order! No monster ai as of yet, sorry, and hutts are soon to come."
var/default_value = key
var/char_name = input(src, help_text, prompt_title, default_value) as null|text
var/mob/new_mob
var/choice = input("What is your race?") in list("Human","Wookie","Jawa","Rodian","Ewok")
var/choice2 = input("What is your sex?") in list("Male","Female")
var/choice3 = input("What is your class?") in list ("Combat","Piloting","Bounty Hunting","Smuggling","Engineering","Diplomacy")
if(choice == "Human")
if(choice2 == "Male")
if(choice3 == "Combat")
new_mob = new/mob/Mhuman()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Human")
if(choice2 == "Male")
if(choice3 == "Piloting")
new_mob = new/mob/Mhuman()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Human")
if(choice2 == "Male")
if(choice3 == "Bounty Hunting")
new_mob = new/mob/Mhuman()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Human")
if(choice2 == "Male")
if(choice3 == "Smuggling")
new_mob = new/mob/Mhuman()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Human")
if(choice2 == "Male")
if(choice3 == "Engineering")
new_mob = new/mob/Mhuman()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Human")
if(choice2 == "Male")
if(choice3 == "Diplomacy")
new_mob = new/mob/Mhuman()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Human")
if(choice2 == "Female")
if(choice3 == "Combat")
new_mob = new/mob/Fhuman()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Human")
if(choice2 == "Female")
if(choice3 == "Piloting")
new_mob = new/mob/Fhuman()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Human")
if(choice2 == "Female")
if(choice3 == "Bounty Hunting")
new_mob = new/mob/Fhuman()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Human")
if(choice2 == "Female")
if(choice3 == "Smuggling")
new_mob = new/mob/Fhuman()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Human")
if(choice2 == "Female")
if(choice3 == "Engineering")
new_mob = new/mob/Fhuman()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Human")
if(choice2 == "Female")
if(choice3 == "Diplomacy")
new_mob = new/mob/Fhuman()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Wookie")
if(choice2 == "Male")
if(choice3 == "Combat")
new_mob = new/mob/wookie()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Wookie")
if(choice2 == "Male")
if(choice3 == "Piloting")
new_mob = new/mob/wookie()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Wookie")
if(choice2 == "Male")
if(choice3 == "Bounty Hunting")
new_mob = new/mob/wookie()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Wookie")
if(choice2 == "Male")
if(choice3 == "Engineering")
new_mob = new/mob/wookie()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Wookie")
if(choice2 == "Male")
if(choice3 == "Diplomacy")
new_mob = new/mob/wookie()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Wookie")
if(choice2 == "Male")
if(choice3 == "Smuggling")
new_mob = new/mob/wookie()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Wookie")
if(choice2 == "Female")
if(choice3 == "Combat")
new_mob = new/mob/wookie()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Wookie")
if(choice2 == "Female")
if(choice3 == "Piloting")
new_mob = new/mob/wookie()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Wookie")
if(choice2 == "Female")
if(choice3 == "Bounty Hunter")
new_mob = new/mob/wookie()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Wookie")
if(choice2 == "Female")
if(choice3 == "Smuggling")
new_mob = new/mob/wookie()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Wookie")
if(choice2 == "Female")
if(choice3 == "Engineering")
new_mob = new/mob/wookie()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Wookie")
if(choice2 == "Female")
if(choice3 == "Diplomacy")
new_mob = new/mob/wookie()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Jawa")
if(choice2 == "Male")
if(choice3 == "Combat")
new_mob = new/mob/jawa()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Jawa")
if(choice2 == "Male")
if(choice3 == "Piloting")
new_mob = new/mob/jawa()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Jawa")
if(choice2 == "Male")
if(choice3 == "Bounty Hunting")
new_mob = new/mob/jawa()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Jawa")
if(choice2 == "Male")
if(choice3 == "Smuggling")
new_mob = new/mob/jawa()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Jawa")
if(choice2 == "Male")
if(choice3 == "Engineering")
new_mob = new/mob/jawa()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Jawa")
if(choice2 == "Male")
if(choice3 == "Diplomacy")
new_mob = new/mob/jawa()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Jawa")
if(choice2 == "Female")
if(choice3 == "Combat")
new_mob = new/mob/jawa()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Jawa")
if(choice2 == "Female")
if(choice3 == "Piloting")
new_mob = new/mob/jawa()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Jawa")
if(choice2 == "Female")
if(choice3 == "Bounty Hunting")
new_mob = new/mob/jawa()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Jawa")
if(choice2 == "Female")
if(choice3 == "Smuggling")
new_mob = new/mob/jawa()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Jawa")
if(choice2 == "Female")
if(choice3 == "Engineering")
new_mob = new/mob/jawa()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Jawa")
if(choice2 == "Female")
if(choice3 == "Diplomacy")
new_mob = new/mob/jawa()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Rodian")
if(choice2 == "Male")
if(choice3 == "Combat")
new_mob = new/mob/rodian()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Rodian")
if(choice2 == "Male")
if(choice3 == "Piloting")
new_mob = new/mob/rodian()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Rodian")
if(choice2 == "Male")
if(choice3 == "Bounty Hunting")
new_mob = new/mob/rodian()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Rodian")
if(choice2 == "Male")
if(choice3 == "Smuggling")
new_mob = new/mob/rodian()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Rodian")
if(choice2 == "Male")
if(choice3 == "Engineering")
new_mob = new/mob/rodian()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Rodian")
if(choice2 == "Male")
if(choice3 == "Diplomacy")
new_mob = new/mob/rodian()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Rodian")
if(choice2 == "Female")
if(choice3 == "Combat")
new_mob = new/mob/rodian()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Rodian")
if(choice2 == "Female")
if(choice3 == "Piloting")
new_mob = new/mob/rodian()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Rodian")
if(choice2 == "Female")
if(choice3 == "Bounty Hunting")
new_mob = new/mob/rodian()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Rodian")
if(choice2 == "Female")
if(choice3 == "Smuggling")
new_mob = new/mob/rodian()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Rodian")
if(choice2 == "Female")
if(choice3 == "Engineering")
new_mob = new/mob/rodian()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Rodian")
if(choice2 == "Female")
if(choice3 == "Diplomacy")
new_mob = new/mob/rodian()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Ewok")
if(choice2 == "Male")
if(choice3 == "Combat")
new_mob = new/mob/ewok()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Ewok")
if(choice2 == "Male")
if(choice3 == "Piloting")
new_mob = new/mob/ewok()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Ewok")
if(choice2 == "Male")
if(choice3 == "Bounty Hunting")
new_mob = new/mob/ewok()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Ewok")
if(choice2 == "Male")
if(choice3 == "Smuggling")
new_mob = new/mob/ewok()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Ewok")
if(choice2 == "Male")
if(choice3 == "Engineering")
new_mob = new/mob/ewok()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Ewok")
if(choice2 == "Male")
if(choice3 == "Diplomacy")
new_mob = new/mob/ewok()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Ewok")
if(choice2 == "Female")
if(choice3 == "Combat")
new_mob = new/mob/ewok()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Ewok")
if(choice2 == "Female")
if(choice3 == "Piloting")
new_mob = new/mob/ewok()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Ewok")
if(choice2 == "Female")
if(choice3 == "Bounty Hunting")
new_mob = new/mob/ewok()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Ewok")
if(choice2 == "Female")
if(choice3 == "Smuggling")
new_mob = new/mob/ewok()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Ewok")
if(choice2 == "Female")
if(choice3 == "Engineering")
new_mob = new/mob/ewok()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
if(choice == "Ewok")
if(choice2 == "Female")
if(choice3 == "Diplomacy")
new_mob = new/mob/ewok()
new_mob.loc = locate(1,1,1)
usr.loc = locate(1,1,1)
new_mob.name = char_name
src.client.mob = new_mob
del(src)
ID:261216
![]() Oct 27 2001, 7:03 am
|
|
![]() Oct 27 2001, 7:30 am
|
|
Login() needs to call AddGMVerbs() or ..() for s_admin to function. That is in the freakin' documentation, people.
|
Himura Kenshin wrote:
I never had to do that before And s_admin didn't used to work with CharacterHandling before either... things change. =P |
heh ok I put in ..() under mob/Login and mob/Logout
that didnt work so I put in AddGMVerbs() under mob/Login and put RemoveGMVerbs() under mob/Logout and that didnt work either, but really my main priority is tomake it so that when you log back in, your screen isnt black |
Wow. I probably shouldn't do this, but I can't help myself. Maybe you'll learn something, maybe you'll just take this without looking at it, or maybe you'll ignore it. Your choice. But the following accomplishes the same thing you had in CreateCharacter() after the input() statements:
switch (choice) I understand that you probably have lots of things to add based on the possible combinations of choices, but this sort of code structure will be much easier to maintain as well as much more efficient. |