Referring to a door that the player is moving through

Hey all got another targeting question for you. I’ve given doors a size and I want to check the size of the player against the size of the door the player is moving through. So I have a before going through a door follow by an if statement that checked the size of the noun but inform instead tries to check the size of the direction instead. Do I have to build a table of sizes And directions o check for each room or is there a way to refer the rule to the correct door?


Before going through a door (called D): …

Or you can check the “door gone through” variable, which is available in any before-going-through rule.