dagobaking Posted March 19, 2018 Author Share 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? Link to comment Share on other sites More sharing options...
llamaRCA Posted March 19, 2018 Share 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? 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. Link to comment Share on other sites More sharing options...
dagobaking Posted March 19, 2018 Author Share 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. Link to comment Share on other sites More sharing options...
dagobaking Posted March 19, 2018 Author Share Posted March 19, 2018 (edited) 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 Link to comment Share on other sites More sharing options...
Recommended Posts