i have done a basic coding for an eace of cloth it would be and obj right heres my coding i just geused the last part i know it's wrong
obj
akasuki_suit
name = "akasuki_suit"
verb
wear()
src + icon = "Akasuki Coat.dmi"
i want it so when u right click wear it wil go on top of ur charaecter
ID:156213
![]() Dec 5 2010, 9:56 am
|
|
i did the coding but it goes under the play icon instead f over how do i change it to go over the icon of the mob
|
It's supposed to be <small>usr.overlays</small>. I really don't get why it's showing it under the mob, overlays should make it work.
|
No, it just means that the suit's layer is set above the mob's layer. You can have as many overlays as you want.
|
kk umm i know this will come up in the futrue i will ask it know cause it could be somthing i might have to add to every item um i want my cloth in the game to be a serten layer so that say they put on the akasuki coat and then put on a shirt the akasuki coat would still cover the shirt
|
Just set the shirt's layer lower than the suit's.
layer = MOB_LAYER + 5 // akatsuki suit's layer |
and so if i want it to go under my usr i would code it like this
obj akasuki_suit icon = 'Akasuki Coat.dmi' layer = MOB_LAYER - 5 verb wear() usr.underlays += src |
Here's a specific example on what you're trying to achieve.