dagobaking Posted March 19, 2018 Author Posted March 19, 2018 So, I implemented the reference alias depot strategy. It works. Thank everyone for their help. One part that I am missing is how to run a function on the quest script once the scene gets to a specific phase. Is that using a script fragment? Or, is there some kind of event function I can put on the quest script that fires whenever a scene phase changes?
llamaRCA Posted March 19, 2018 Posted March 19, 2018 On 3/19/2018 at 4:08 PM, dagobaking said: So, I implemented the reference alias depot strategy. It works. Thank everyone for their help. One part that I am missing is how to run a function on the quest script once the scene gets to a specific phase. Is that using a script fragment? Or, is there some kind of event function I can put on the quest script that fires whenever a scene phase changes? You can do it either way. Run a fragment on the phase itself or you can use one of the events found here https://www.creationkit.com/fallout4/index.php?title=Scene_Script I can only confirm that OnEnd() works as intended, I haven't tried using any of the others.
dagobaking Posted March 19, 2018 Author Posted March 19, 2018 Thank you! OnPhaseEnd should work. I was worried that I would have to write a slightly modified fragment for every scene.
dagobaking Posted March 19, 2018 Author Posted March 19, 2018 (edited) On 3/19/2018 at 5:34 PM, llamaRCA said: You can do it either way. Run a fragment on the phase itself or you can use one of the events found here https://www.creationkit.com/fallout4/index.php?title=Scene_Script I can only confirm that OnEnd() works as intended, I haven't tried using any of the others. How should that event be phrased on the quest? I've tried: Event Scene.OnPhaseEnd(int auiPhaseIndex) Debug.Notification("Scene phase " + auiPhaseIndex + " has just finished") EndEvent and Event OnPhaseEnd(int auiPhaseIndex) Debug.Notification("Scene phase " + auiPhaseIndex + " has just finished") EndEvent Both give compile errors. Also, is there a way to get the referencealiases involved in the scene from that index? [EDIT: I will start a new thread about this question since it is a new subject. It will be helpful for anyone searching for the answer to have it titled right.] Edited March 19, 2018 by dagobaking
Recommended Posts