obj
bluepiratebandana
name = "blue pirate bandana"
icon = 'bpb.dmi'
DblClick()
if(src.loc == usr)
if(usr.hatequipped==1)
usr.hatequipped = 0
usr.overlays -= 'bpb.dmi'
usr.Def -= 5
usr.Str -= 18
src.suffix = ""
return
else
usr.hatequipped = 1
usr.overlays += 'bpb.dmi'
usr.Def += 5
usr.Str += 18
src.suffix = "Equipped"
return
with this kind of equipped code how can i make it so one and only one thing is equipped at a time?
heres the other thing almost the same thing exept for the stat +
obj
redpiratebandana
name = "red pirate bandana"
icon = 'rpb.dmi'
DblClick()
if(src.loc == usr)
if(usr.hatequipped==1)
usr.hatequipped = 0
usr.overlays -= 'rpb.dmi'
usr.Def -= 12
usr.Str -= 9
src.suffix = ""
return
else
usr.hatequipped = 1
usr.overlays += 'rpb.dmi'
usr.Def += 12
usr.Str += 9
src.suffix = "Equipped"
return
when i equip both at the same time and unequip them all the str and def get a major mess up i get in the -30 def and stuff so it would work if only one could be equipped at a time.