var/overalls_type = equipped["overalls"]
var/obj/O = new overalls_type()
1
2
In response to Midgetbuster
|
|
Whooops, sorry, forgot BYOND is a bit inflexible here. It should be:
|
In response to Garthor
|
|
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 :( |
In response to Midgetbuster
|
|
That is because icon objects do not have a layer attribute. You need to add some other type of object which does.
|
In response to Garthor
|
|
So how would i go about doing that then?
|
In response to Midgetbuster
|
|
By giving the icon back to the obj you already created.
|
In response to Garthor
|
|
arr touche.
Thanks. mob/proc/Overlay_Build() i presume thats right since its doing what i want it to |
In response to Midgetbuster
|
|
Maybe you should double-check... =)
http://www.byond.com/members/ DreamMakers?command=view_post&post=95390 |
In response to Darkjohn66
|
|
Arr. enlightening thread indeed.
But also note i also posted saying i presume with the code as is. incurring a semi sort of if its wrong inform me kind of thing. but indeed. |
1
2
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)