puddles Posted December 23, 2018 Posted December 23, 2018 So, I'm having a bizarre issue issue where a quest script in a mod I'm working on only fires off once. I setup printc to display a "Quest Active" at the start of each run of the script, and it just...only does it once. Anyone had similar issues before?
fejeena Posted December 23, 2018 Posted December 23, 2018 Yes: Quest priority too low. So the game seems to never check the script. And I had the problem when there was no Quest stage in the script. -------------------------- scn name short Huhu begin gamemode If huhu >= 1 Player.additem xxyyyyyy 1 endif end -------------------- That did not work, or run only once or only when I save the game, quit and start the game again. But ----------- scn name short Huhu begin gamemode If GetStage QuestID >= 5 If huhu >= 1 Player.additem xxyyyyyy 1 endif endif end ---------------- That worked ----------------------------- But I think both problems only happen with a game with many scripts.
TDA Posted December 23, 2018 Posted December 23, 2018 2 hours ago, puddles said: So, I'm having a bizarre issue issue where a quest script in a mod I'm working on only fires off once. I setup printc to display a "Quest Active" at the start of each run of the script, and it just...only does it once. Anyone had similar issues before? It is not clear what you are doing (what kind of script?) For the speed of the script (only in the quest) is responsible variable - fQuestDelayTime ================== float fQuestDelayTime ================== The smaller the number, the faster it works,order of numbers: 0.001 =1/1000 sec example if fQuestDelayTime !=0.001 set fQuestDelayTime to 0.001 - very fast endif ************************************************* Doing something very fast ************************************************* if fQuestDelayTime !=0 set fQuestDelayTime to 0 - very slow endif ************************************************* To do at normal speed (control conditions to run fast speed) *************************************************
mem4ob4 Posted December 26, 2018 Posted December 26, 2018 If something in your questscript -breaks- it will not run again. This can happen without any error messages etc. Double check all your condition to make sure you are not calling a null object that is not loaded into game yet etc. Mem
Recommended Posts
Archived
This topic is now archived and is closed to further replies.