cyano/cyo/items.cyo
2025-07-17 17:47:08 -06:00

62 lines
1.6 KiB
Plaintext

DuctTape:
str="Duct Tape"
status=[.Full, .Empty]
location=Warehouse
FlashLight:
str="Flash Light"
status=[.Bright, .Dead, .Broken]
_onExamine:
if $self.status = .Bright:
A handy tool for seeing your way out.
else if $self.status = .Dead:
A handy tool for seeing your way out, unfortunately its out of batteries.
else:
A handy tool for seeing your way out, unfortunately its busted.
_onUse:
if $context.args.contains(Batteries) and $self.status = .Dead:
$self.status = .Bright
$player.inventory.remove(Batteries)
You screw the back on tight, and the light comes on!
_onFix:
if $context.args.contains(DuctTape) and $self.status = .Broken:
$self.status = .Dead
$DuctTape.status = .Empty
Nothing duct tape cant fix! The flashlight just needs some power.
Batteries:
_onExamine:
Energized little cylinders, good for something...
# Hammer:
# [Hammer]
# desc= Good for breaking things
# status=Solid
# rel=Flash Light=>Broken
# [Key1]
# name= Key
# desc= A mysterious key
# [Key2]
# name= Key
# desc= A different key, not to be confused with the other
# [Locked Chest]
# decs= A large chest with two key holes
# status=Locked,Closed,Opened
# *Open=
# &Locked::Its locked
# &Opened::Its already open
# &:s.Opened:The large chest swings open.
# *Close=
# &Locked::[Its locked, and therefore closed. You arent strong enough to break it with your hands.<Hammer.s=&Solid>You cant break it open, but maybe with something tough enough...]
# &Closed::Its already closed!!
# &Opened:s.Closed:The chest closes with a clunk.
# *Unlock=
# &