var/overalls_type = equipped["overalls"]
var/obj/O = new overalls_type()
Whooops, sorry, forgot BYOND is a bit inflexible here. It should be:
|
I didnt wanna re bump this. but since my attempts to contact you have failed so far ill just do a delete on my previous post and add a new one to bump this up.
Anyways. ive got it adding the stuff sorta how i want them to but its not exactly going how i really want it to.. mainly because the layers arnt kicking in. So ill post some code snips here. and hope someone responds as i do not wish to open up a new topic for this. Info: This is the overlay building as it stands currently i have yet to add in sections for pants etc as i dont have those ingame yet. mob/proc/Overlay_Build() Info:Other bits that may be deemed necessary //The layers. I think i posted the needed bits of code for both sections. In any case without the layering the list defined as L in the olay builder just jabs them in depending on how there added which is common sense basically but i need it to add them by layers so that the clothing and whatnot get added to the right positions. As it stands they go over the hair and cut it off and the weapon stays under the clothing to. which is all wrong. Hope someone responds so i don't have to make a new topic :( |
That is because icon objects do not have a layer attribute. You need to add some other type of object which does.
|
arr touche.
Thanks. mob/proc/Overlay_Build() i presume thats right since its doing what i want it to |
Maybe you should double-check... =)
http://www.byond.com/members/ DreamMakers?command=view_post&post=95390 |
I get a compile error saying invalid expression.
When i do:: var/obj/O = new equipped["overalls"]
I get runtime error: Cannot create objects of type /list.
(Thats without moving onto blend etc since no point trying those if without colour is failing)