I didnt get help on the Code Problems so maybe some one will help here
obj/hair
icon = 'droid.dmi'
icon_state = "17h" //that's zero, not ( ) or O
layer = FLOAT_LAYER
obj/hair/chrono
icon = 'chronoh.dmi'
icon_state = "chrono" //that's zero, not ( ) or O
layer = FLOAT_LAYER
Click()
src.icon += rgb(20,0,0)
proc/hair()
var/head = input("Plz Choose A Hair Style") in list("Long","Chrono's Style")
if(head == "Long")
usr:overlays = null
usr:overlays += /obj/hair
if(head == "Chrono's Style")
usr:overlays = null
usr:overlays += /obj/hair/chrono/
obj
ahead1
name = "Hair"
layer = FLOAT_LAYER
Click()
hair()
ared
icon = 'droid.dmi'
layer = FLOAT_LAYER
mob/makingchar
icon = 'droid.dmi'
var
obj/ahead1/head1
obj/ared/redp
hair
Move()
sleep(100000000000)
Login()
usr:Move(locate(12, 14, 2))
New()
..()
src.head1 = new
src.redp = new
Click()
var/new_mob = new /mob/droid()
new_mob:overlays += usr:overlays
usr.client.mob = new_mob
var/turf/first_location = locate(1, 5, 1)
new_mob:Move(first_location)
Stat()
redp.name = "Add Red"
stat("Click Your Icon When Done")
stat(usr)
statpanel("Head")
stat(usr)
stat(head1)
stat(redp)
None of its really important but the ared obj i want it so when u click it changes the color of the overlay that on the mob (the hair color) ill i need is help here is wat i tried last this ti suppose to add red to it but it just messes up
Click()
usr:overlays:icon += rgb(10,0,0)
ID:180270
Jul 30 2001, 9:12 pm
|
|
Not addressing the problem yet, I'll point out something very very bad with your code that I noticed.
Move() This means, rather precisely, that you want the mob to move somewhere but you don't want him to move. Secondly, rather than changing the proc to take forever, why not do this? mob/Move() return //do nothing Login() //You should avoid using 'usr', though in this case it is almost always OK src.loc = locate(12,14,2) //don't call Move() so we don't freeze the game. None of its really important but the ared obj i want it so when u click it changes the color of the overlay that on the mob (the hair color) ill i need is help here is wat i tried last this ti suppose to add red to it but it just messes up You can't do this. What you need to do is clear out the overlays, and then follow these steps as I paged you with. Create a new obj. Set the obj's icon. Set its icon state. Apply RGB to the obj. usr.overlays += obj Turn that into code, and I'll help you with any problems you find with it. For your convenience, I'm uploading a library snippet that does this for you. Include the file in your project, and use it as it is documented. (Please wait at least half an hour if it isn't up yet.) |
dantom, darkness, wanna help me out?!?