Library Bug - On-Seat

A milking stool, for example, that is on-seat and and an item. An attempt to take the stool whilst sat on it crashes the compiler and freezes windows frotz.

Simple fix in my game but not sure of the correct library fix.

Also in-seat has a similar issue.

Thanks.

1 Like

Thanks! I will fix this in the library. In the meantime:

(prevent [take $Obj])
    (current player $Player)
    ($Player is nested $Rel $Obj)
    You can't take (the $Obj) while you are (name $Rel) (them $Obj).
3 Likes

Here’s another approach:

(before [take (item $Obj)])
    (current player $Player)
    ($Player has ancestor $Obj)
    (first try [leave $Obj])
3 Likes