ID:263527
 
Code

#include <deadron/characterhandling>
client
script = "<STYLE>BODY {background: black; color: red}</STYLE>" //This changes the chat room box and text colour
base_num_characters_allowed = 3 //This limits a players save files


#define BASE_MENU_CREATE_CHARACTER "Create New Character"
#define BASE_MENU_DELETE_CHARACTER "Delete Character"
#define BASE_MENU_CANCEL "Cancel"
#define BASE_MENU_QUIT "Quit"

world
mob = /mob/creating_character
view = 8
name = "Pokemon SilverWing"

mob/creating_character
Login()
world << "[usr] has just entered '[world.name]'!"
proc/CreateCharacter()
var/mob/new_mob
var/char_name
while(!char_name)
char_name = input("Please put your character name in here.","Name") as null|text
var/char = input(src,"Pick your character!") in list("Pikachu","Charmander","Bulbasour","Squirtle","Eevee","Pidgeot","Treeko","Torchic","Mudkip","None")
switch(char)
if("Pikachu")
new_mob = new /mob/player/P/Pikachu
if("Charmander")
new_mob = new /mob/player/PO/Charmander
if("Bulbasour")
new_mob = new /mob/player/POK/Bulbasour
if("Squirtle")
new_mob = new /mob/player/POKE/Squirtle
if("Eevee")
new_mob = new /mob/player/POKEM/Eevee
if("Pidgeot")
new_mob = new /mob/player/POKEMO/Pidgeot
if("Treeko")
new_mob = new /mob/player/POKEMON/Treeko
if("Torchic")
new_mob = new /mob/player/POKEMONS/Torchic
if("Mudkip")
new_mob = new /mob/player/POKEMONSI/Mudkip
if("None")
src.Logout()
new_mob.name = char_name
new_mob.loc = locate(1,1,1)
src.client.mob = new_mob
..()
del(src)


mob/player
P
Pikachu
icon = 'Pikachu.dmi'

PO
Charmander
icon = 'Charmander.dmi'

POK
Bulbasour
icon = 'bulbasour.dmi'

POKE
Squirtle
icon = 'Squirtle.dmi'
POKEM
Eevee
icon = 'Eevee.dmi'

POKEMO
Pidgeot
icon = 'Pidgeot.dmi'

POKEMON
Treeko
icon = 'Treeko.dmi'
POKEMONS
Torchic
icon = 'Torchic.dmi'
POKEMONSI
Mudkip
icon = 'Mudkip.dmi'
client/Del() //When a player logs out this is called
world << "[src] has just shut \himself down from this world..." //This message is sent to the world when the player leaves the game
..() //This deletes the players icon when he/she leaves the game

mob/Logout() //This is called because another mob is created (made from the players Key)
del(src) //This deletes the players "Key made mob"


Problem description:Shgws black screen when a player logs in..

I would do this...
new_mob.name = char_name
new_mob.loc = locate(1,1,1)
src.client.mob = new_mob


Like this instead...
new_mob.name = char_name
src.client.mob = new_mob
new_mob.loc = locate(1,1,1)
Read the DM Guide if you want to have hope of coding.