Need Help With This......... in Developer Help
|
|
Code:obj
obj Tshirt name = "T-Shirt" icon = 'T-Shirt.dmi' worn = 0 verb Wear() if(!src.worn) src.worn=1 usr.overlays += 'T-Shirt.dmi' usr << "You wear the [src.name]." src.suffix = "Equipped" else src.worn = 0 usr.overlays -= 'T-Shirt.dmi' usr << "You remove the [src.name]." src.suffix = "" usr.overlays -= 'T-Shirt.dmi' Drop() if(src:worn == 1) usr << "Not while its being worn." if(src:worn == 0) src.loc=locate(usr.x,usr.y-1,usr.z) Get() set src in oview(1) src.loc = usr usr<<"You picked up some [src]"
|
Problem description:It says i have an error can you see the error?
It says Objs.dm:1:error: obj: expected end of statement
Also ive set the veriables on an other page they are
mob/var
worn = 0
have = 0
|