ID:263110
 
Code:
obj
BackLayer
name = ""
icon = 'white.dmi'
density = 0
layer = MOB_LAYER+99

InvisableWall
name = ""
Choice
layer = MOB_LAYER+99
Gender
name = ""
icon = 'BoyOrGirl.bmp'
Boy
icon = 'BoyChoice.png'
Click()
/* usr.Eyecolor()
usr.icon = 'player.dmi'
usr.icon_state = "MaleWhiteBase"
usr.layer = MOB_LAYER+45704357204503
*/

switch(alert("You want to be a boy?","Gender","Yes","No")in list("Yes","No"))
if("Yes")
var/obj/Background/Middle/M = new(usr.client.screen)
var/obj/Background/Bottom/B = new
var/obj/Background/Bottom_Left/BL = new
var/obj/Background/Bottom_Right/BR = new
var/obj/Background/Left/L = new
var/obj/Background/Right/R = new
var/obj/Background/Top/T = new
var/obj/Background/Top_Right/TR = new
var/obj/Background/Top_Left/TL = new
M.screen_loc = "1,1" to "20,16"
if("No")
return


Problem description:

The /obj/Background/Middle/M doesnt appear on screen
try

usr.client.screen += new /obj/Background/Middle/M


Dunno if it will work to tired but i hope it does :).
In response to A.T.H.K
Nope T_T it says its undefined. Xx
In response to Dead_Demon
Well you should of said that in the first place... show me the error...
In response to A.T.H.K
Ok
obj
BackLayer
name = ""
icon = 'white.dmi'
density = 0
layer = MOB_LAYER+99

InvisableWall
name = ""
Choice
layer = MOB_LAYER+99
Gender
name = ""
icon = 'BoyOrGirl.bmp'
Boy
icon = 'BoyChoice.png'
Click()
switch(alert("You want to be a boy?","Gender","Yes","No")in list("Yes","No"))
if("Yes")
// var/obj/Background/Middle/M = new(usr.client.screen)
var/obj/Background/Bottom/B = new
var/obj/Background/Bottom_Left/BL = new
var/obj/Background/Bottom_Right/BR = new
var/obj/Background/Left/L = new
var/obj/Background/Right/R = new
var/obj/Background/Top/T = new
var/obj/Background/Top_Right/TR = new
var/obj/Background/Top_Left/TL = new
usr.client.screen += new var/obj/Background/Middle/M
M.screen_loc = "1,1" to "20,16"

Error -
var/obj/Background/Middle/M:undefined type
In response to Dead_Demon
usr.client.screen += new var/obj/Background/Middle/M


Is your problem

use

usr.client.screen += new /obj/Background/Middle/M
In response to A.T.H.K
<; Now it claims its an undefined type. Ima just download a HUD demo. I thought I could remember the stuff from 2 years ago, guess I cant T_T