Xor only appears via rapid transit #29
Labels
Bug
Something isn't working
Tier 1
Just Fixes
Type: Scripting
This issue is related specifically to a scripting bug/error
Split from #8
The second Xor encounter, the spaceport ambush, will only happen if the player returns to the Ebon Hawk using the rapid transit system. If you don't use it, you can't ever finish Juhani's quest.
The reason Xor consistently does appear after the rapid transit system is used is thanks to this bit of code:
I edited my save to manually set K_XOR_AMBUSH to 1 and was able to trigger the encounter after walking to the spaceport. I searched through the scripts and only found one other that sets the global to the correct state - a cheat script for quality assurance that isn't ever used anymore. So that'd be why nothing else works.
But we should be able to set this global and trigger the encounter without requiring the use of rapid transit. I think the best solution is to attach it to the OnEnter scripts of each module adjacent to the spaceports. That way when you leave the spaceport after the initial encounter with Xor, he'll be set up to ambush you when you return to the Ebon Hawk, via rapid transit or otherwise. The only potential oddity is if you immediately enter the Ebon Hawk and travel around the galaxy without leaving ever leaving a spaceport. Though if you did that, it would be no surprise that Xor would never catch you.
I'll sort this out later, too tired now. This is mostly a reminder to my future self.
The text was updated successfully, but these errors were encountered: