This code is not doing as I expected, which is keeping the player from going south from a room called “Counter” if the player does not hold a ticket:
Instead of going south when player is in Counter:
if player carries ticket:
continue the action;
say "You need to buy a ticket first.";
stop the action.
So what is it actually doing?
It allows the player to go south when not holding the ticket.
I don’t see what the problem is with your code, but I would write it this way:
Instead of going south from the Counter when the player is not holding the ticket, say "You need a ticket."
Try that and see if anything changes?
Yes, that worked. Thanks.