WIP scanning, analysis and AST todo

This commit is contained in:
Nate Anderson
2025-07-17 17:47:08 -06:00
parent dc6b360583
commit 38eab409c6
9 changed files with 536 additions and 38 deletions
+60 -3
View File
@@ -1,4 +1,61 @@
[Duct Tape]
d:The tape that does it all.
DuctTape:
str="Duct Tape"
status=[.Full, .Empty]
location=Warehouse
[Flash Light]
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=
# &