Help! Make door open with keys!

Hello, let's say I made a door. That door is only passable if I have 2 keys.

But, if I go over 2 keys, like 3 keys, the door does not open anymore because it was set to 2 keys only.

How would I make it so if I go over 2 keys, the door will still open?

If you want the door to open if you have 2 or 3 keys, then you'll want to change the conditional to be >= rather than ==

if player.keys>=2 then
  fin "you win"
end
2 Likes