1. The player enters a room with a boss enemy. The only way out is through a door that requires a security key, which is located in that same room.
2. The door will not open unless the enemy has teleported out of the room ("bosswarp") AND the security key is picked up (SecKey1). [Both "bosswarp" and "SecKey1" are declared in previous scripts.]
3. If the boss has not teleported, using the door gives an access-denied message that "live specimens are present". This should happen even if the player has picked up the key
4. If the boss has teleported and the player has not got the security key, using the door should give an access-denied message that "security key is required"
Here is the script:
Spoiler:What actually happens is this: After the boss teleports out, but before the player has picked up the security key, using the door incorrectly gives the access-denied "live specimens present" message. It should give the access-denied "security key required" message instead. What am I doing wrong?