ID:262336
 
Code:
don't mind the obj and the choose sub categories not lining up i copied them seperatly.
obj
var/mob/new_mob
choose/mob_saiyan
icon = 'male-white.dmi'
layer = MOB_LAYER+55
Click()
new_mob = new /mob/characters/saiyajin()
new_mob.move = 1
new_mob.focused = 0
new_mob.powerlevel = 5
new_mob.maxpowerlevel = 5
new_mob.strength = 1
new_mob.dead = 0
new_mob.rage = 0
new_mob.rage = 0
new_mob.faceicon = 'default.dmi'
new_mob.gonessj = 0
new_mob.stamina = 100
new_mob.maxstamina = 100
new_mob.zenni = 3000
new_mob.will = 0
new_mob.honor = 0
new_mob.gonessj = 0
new_mob.state = "Normal"
new_mob.purity = 0
new_mob.kitech = "None"
new_mob.auratech = "None"
new_mob.kitechlearn = 0
new_mob.bangtechlearn=0
new_mob.auratechlearn = 0
new_mob.kaioken = 0
new_mob.maxstamina = 100
new_mob.mother = "Unknown"
new_mob.father = "Unknown"
new_mob.focustechlearn = 0
new_mob.kicolor = "None"
new_mob.focus = "None"
new_mob.moon = 1
new_mob.flightlearn = 0
new_mob.race = "Saiya-jin"
new_mob.overlays += /obj/tail
new_mob.title = ""
new_mob.talk = 1
usr.loc = locate(33,100,15)
choose/hair/goku
icon = 'hair_goku.dmi'
layer = MOB_LAYER+55
Click()
F_Color_Selector=new
var/new_rgb = F_Color_Selector.Get_Color(usr)
var/icon/I = new('hair_goku.dmi')
I.Blend(new_rgb)
new_mob.alignment = "good"
new_mob.race = usr.prerace
new_mob.overlays += I
new_mob.oicon = new_mob.icon
new_mob.npp = 0
new_mob.name = usr.prename
usr.client.mob = new_mob
usr.verbs += /mob/verb/save_me
usr.verbs += /mob/verb/AFK
usr.loc=locate(77,77,1)


Problem description:
the object choose/hair/goku keeps casuing an error during play. I don't see a apparent answer.
The In Game Error:
runtime error: Cannot modify null.alignment.
proc name: Click (/obj/choose/hair/goku/Click)
source file: Login Objs.dm,251
usr: GOTENKS SS5 (/mob/other/choosing_character)
src: the goku (/obj/choose/hair/goku)
call stack:
the goku (/obj/choose/hair/goku): Click(DBX (31,102,15) (/turf/titlescreen))

new_mob for choose/mob_saiyan is not the same as choose/hair/goku and this is where the issue is.

this is because var/mob/new_mob is not being declared as a new mob so your getting a null message. what you could do is pass on the settings for new_mob to the hair.