ID:150698
![]() Aug 7 2001, 8:14 pm
|
|
I need to know how to make it so you have sub options under character creation...such as list (Male, Female), then when you choose male, you goto list (Long, Short, Bald) for hair and then list (Blue, Red, Black) for hair color, and if you choose, lets say Male with Long Black hair, it sets an overlay to the mob/character/basebodymale called 'blackhairlong', is there any way to do it?
|
Copyright © 2025 BYOND Software.
All rights reserved.
create variables for the mobs
mob
var
hair
haircolor
then when they login, set the vars with inputs
mob
Login()
..()
var/list/L = new
L += "Boy"
L += "Girl"
var/a = input("What is your gender?") in L
switch(a)
if("Boy")
usr.boy = 1
hair()
if("Girl")
usr.boy = 0
hair()
proc
hair()
var/list/L = new
L += "Black"
L += "Blue"
L += "Red"
var/a = input("What is your hair color?") in L
switch(a)
if("Black")
usr.overlays += /obj/blackhair
etc. etc.
hopefully you get the point by now, this is just one way to do it, im sure someone else can give you a much better way than i did...