this has been annoying me for ages so please i would appreciate any help. The problem is that when the player transforms into ssj it should tke away hi current hair and then add the ssj hair. But the code only takes away black hair and not coloured hair.
if (usr.hair=="Spikey")
usr.overlays += 'hair_ultrasuper_saiyajin.dmi'
if (usr.hair=="long")
var/hairover = 'hair_black_long.dmi'
hairover += rgb(160,160,50)
usr.overlays += hairover
usr.overlays += 'hair_ultrasuper_saiyajin.dmi'
if (usr.hair=="Short")
usr.overlays += 'hair_ultrasuper_saiyajin.dmi'
if (usr.hair=="Gohan")
usr.overlays += 'hair_ultrasuper_saiyajin.dmi'
if (usr.hair=="Vegeta")
var/hairover = 'hair_vegeta.dmi'
hairover += rgb(180,180,80)
usr.overlays += hairover
if (usr.hair=="Goku")
usr.overlays += 'hair_ssj_goku.dmi'
if (usr.hair=="Bald")
usr.overlays +='Hair_Bald_Supersayajin.dmi'
usr.overlays -= 'hair_black_spikey.dmi'
usr.overlays -= 'hair_black_long.dmi'
usr.overlays -= 'hair_black_short.dmi'
usr.overlays -= 'hair_vegeta.dmi'
usr.overlays -= 'hair_Gohan.dmi'
usr.overlays -= 'hair_goku.dmi'
ID:173063
![]() Feb 21 2004, 5:08 am
|
|
lol no, its just i cant figure out how it works....i need to understand this so that i can move on to different coding
|
Ok, it didn't look like you had a revert code. Try this:
mob/verb/SSJ() ~~SSJ4_Gohan_Majin |
i hav a revert code
its just the trans code pissing me of it only takes away black hair because the icon is default black hair, if the player has coloured hair the coloured hair stays |
~~SSJ4_Gohan_Majin