obj
clothes
verb
wear()
if(!src.worn)
src.layer=worn_layer
add_overlay(src)
src.worn=1
suffix="(worn)"
else
return
remove()
if(src.worn)
src.layer=normal_layer
remove_overlay(src)
src.worn=null
suffix=null
else
return
layer=normal_layer
goku_hair
name="Goku Wig"
icon='goku_hair.dmi'
hat
name="red hat"
icon = 'hat.dmi'
gi
name = "blue gi"
icon = 'gi.dmi'
pants
name = "black pants"
icon = 'pants.dmi'
DblClick()
if(!src.worn)
wear()
else
remove()
obj
verb
get()
set src in oview(0)
if(istype(src,/obj/zeni))
usr.zeni+=src.amount
usr<<"You get "+commas(num2text(src.amount,12))+" Zeni."
del(src)
else
src.Move(usr)
drop()
if(src.worn)
remove()
src.Move(usr.loc)
Problem description:
my problem is, that i want to call that remove() from the drop() verb. i know if i made remove() in just regular obj/verb that it would work, but i want it to work when i made remove() in obj/clothes/verb.
Look up these two useful procs: hascall() and call()
- GhostAnime