New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gorn attacks the player in the Free Mine #32
Conversation
This comment has been minimized.
This comment has been minimized.
I'd like to find out what exactly is the origin of the problem. I had a look at the scripts and theoretically Gorn should not attack, because he is both of NPC-type "friend" and (most of the time) even a party member. According to the damage assessment functions it looks like, that should be enough to tolerate damage from enemies. It's nice that we now have a better angle, looking like the attitude may play a role. Given @catalinstoian remarks that this approach might not be so robust, we might find a way to permanently set Gorn's attitude (without it resetting) or get to the root of the actual problem in the scripts. |
Gorn's line "A member of the Old Camp is dead, and your name was mentioned in connection with his death ..." is triggered from the function I can disable his message successfully by deleting his news. It indeed turns out to be unrelated to his hostility. But it seems to be triggered through a similar event. It seems like Gorn is witnessing himself defeating a guard. |
Is there anything I can do (ingame) to narrow the issue down? |
Not sure at the moment. I am currently trying to dissect the function calls to see what is the origin for Gorn's attitude. |
I pushed some preliminary checks made so far and also have a test here already ( |
I had looked at it last night a little bit and I identified the reason for Gorn attacking. This is the script debug output. When Gorn is following the PC who is being attacked (by an NPC out of range for Gorn), Gorn's fight sound perception is triggered. In the function It seems that
|
Describe the bug
Gorn sometimes attacks the player on the raid of the Free Mine.
Expected behavior
Gorn no longer attacks the player on the raid of the Free Mine.
Test
Run manual test with
test 32
.Triggered by killing a guard when out of sight of Gorn.
Triggered by defeating guards of the Old Camp.
Triggered by Gorn seeing a guard of the Old Camp attacking the PC first.