I think there’s a problem w/ reachability.
(trace reachability $Obj to $Obj or $)
(trace reachability $Obj to $ or $Obj)
(trace reachability $Obj to $Ceil1 or $Ceil2)
($Obj is $Rel $Parent)
~{ ($Rel = #in) ($Parent is closed) }
(trace reachability $Parent to $Ceil1 or $Ceil2)
This is failing in my case, where both the object and the player are in the same place:
> (tree)
#middle-of-nowhere (dark, around the tower, in range of headlights)
#tower #in
#sagebrush #in
#desert-sand #in
#tire-tracks #in
#pickup-truck #in
#knock #in (lit)
#lighter #heldby (handled)
#wallet #heldby (handled)
#license #in
#receipt #in (hidden)
#jacket #wornby
#emotional-baggage #heldby (handled)
#jade #in
#glove-compartment #partof
#cigarettes #in
#headlights #partof
#wiffs-of-gasoline #in
#saguaro #in
Query succeeded: (tree)
> take jade
You can't reach the piece of jade.
>