Does anyone have anything to say about Gilva? You can send me a private message... I have an idea, but I don't have the energy to implement and test it. I want to find a definitive solution. Thank you.
But most importantly, don't stay inside the castle; instead, stand at its gates (you'll still defend inside the castle) – only then will the script that gives you the green key and some nice artifacts trigger (see my post above).