Hi - me again.
It’s dead easy to exctract a used supporter at the “start” of a rule like
.... if the player is on a supporter (called trap) .... is enclosed by an enterable container (called trap)
Once trapped you can set a variable like trapped or use a defintion for trapped to make use of the trapped state/variable in further actions
Instead of taking something when the player is trapped:
But … when I need to access the actual trap the player is on … I haven’t found a way to do this “easily”.
I know I can store the object once the player is trapped and refer to it via this variable
I know I can do something like
let L be the list of traps; repeat with trap running through L: if the player is on trap ... < ---now I have found my trap
I am merely wondering if there is a handy way that I am unaware of that would save me all that trouble.
I can get a list of items carried by the player - I do not have to cyle through every item to see if it is carried.
I can cycle through the list of worn items just as easily.
I can get the location/room the player is in without cycling through the rooms.
But I haven’t managed to come up with such a simple access to
The container the player is in
The supporter the player is on
Am I just missing something or is there really no “easy” way to get access to that information?