ID:175339
 
Can anyone please show me what I have done wrong in this code because I keep gettin errors, thanks.

obj
Head
icon = 'Person.dmi'
if(chrst == 1)
icon_state = "male_t1"
layer = MOB_LAYER
density = 0
New()
pixel_y = 32
what is chrst? is that a variable? If so, have you defined it? can you show the errors please.

I will help..

~Aleis~
ShadowBlade6300 wrote:
Can anyone please show me what I have done wrong in this code because I keep gettin errors, thanks.

obj
Head
icon = 'Person.dmi'

Your problem is here:

if(chrst == 1)
icon_state = "male_t1"

These lines need to be put inside a proc. New() might be the right place for it.

layer = MOB_LAYER
density = 0
New()
pixel_y = 32

Ironically, pixel_y=32 can be taken out of New() and put above.

Lummox JR