Ok, I took a look at the code, so spoilers for folk who want to solve the annoynig puzzle themselves!
...
Location = Monarch, Purpose = Poison, Encounter = Guard
Thanks so much for taking the time to help! I'm just very relieved it's not bugged :) Still love your game!