coldreactive Posted November 8, 2016 Share Posted November 8, 2016 Just wondering what's wrong with this script: Scriptname CRSoulHouseQuest1CheckIfWaited extends Quest Hidden Function CRSoulUpdaterOne() RegisterForUpdateGameTime(8.0) endFunction if CRSoulHouseQuest1.getStage() == 0 Event OnUpdateGameTime() UnregisterForUpdateGameTime() CRSoulHouseQuest1.setStage() = 900 endEvent endIf Basically, the game is checking every 8 in game hours after this quest has started, whether or not the player didn't achieve a specific goal or not (IE: hasn't advanced the quest past stage 0.) But the CK gives this error: Starting 1 compile threads for 1 files... Compiling "CRSoulHouseQuest1CheckIfWaited"... C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\CRSoulHouseQuest1CheckIfWaited.psc(7,0): missing EOF at 'if' No output generated for CRSoulHouseQuest1CheckIfWaited, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on CRSoulHouseQuest1CheckIfWaitedSo I had to use CRSoulHouseQuest1.setStage(900) instead, but now it gives me all these errors: Starting 1 compile threads for 1 files... Compiling "CRSoulHouseQuest1CheckIfWaited"... C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\CRSoulHouseQuest1CheckIfWaited.psc(8,8): variable CRSoulHouseQuest1 is undefined C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\CRSoulHouseQuest1CheckIfWaited.psc(8,26): none is not a known user-defined type C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\CRSoulHouseQuest1CheckIfWaited.psc(8,37): cannot compare a none to a int (cast missing or types unrelated) C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\CRSoulHouseQuest1CheckIfWaited.psc(10,10): variable CRSoulHouseQuest1 is undefined C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\CRSoulHouseQuest1CheckIfWaited.psc(10,28): none is not a known user-defined type No output generated for CRSoulHouseQuest1CheckIfWaited, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on CRSoulHouseQuest1CheckIfWaitedShould I set it to parent.getStage and parent.setStage instead? Since the script is running inside the quest, and not alone. Link to comment Share on other sites More sharing options...
coldreactive Posted November 8, 2016 Author Share Posted November 8, 2016 Well, someone helped me on another modding site, but here's the resolution it seems: Scriptname CRSoulHouseQuest1CheckIfWaited extends Quest Hidden Quest Property CRSoulHouseQuest1 Auto Function CRSoulUpdaterOne() RegisterForUpdateGameTime(8.0) endFunction Event OnUpdateGameTime() if CRSoulHouseQuest1.getStage() == 0 UnregisterForUpdateGameTime() CRSoulHouseQuest1.setStage(900) endIf EndEvent Link to comment Share on other sites More sharing options...
Recommended Posts