TheDarkWearoner75 Posted March 26, 2023 Share Posted March 26, 2023 Good time of day, I'm make some mod and and need help with a script that when you save an object (for me it's a chicken) would change the stage of the quest I'm thinking about making a special activator and when chicken is spawned in this activator it would change the stage of the quest, but do not know what script to make me for this activator Thanks in advance Link to comment Share on other sites More sharing options...
TheDarkWearoner75 Posted March 26, 2023 Author Share Posted March 26, 2023 Goddamn it, in the first paragraph it should not be "saving" but "spawn an object" Link to comment Share on other sites More sharing options...
maxarturo Posted March 26, 2023 Share Posted March 26, 2023 (edited) Add to the 'Base' actor chicken, which needs to have a unique ID that belongs to your mod, this means to not use the default vanilla chicken actor, this script: Quest Property MyQuest Auto Int Property MyQuestStage Auto EVENT OnLoad() MyQuest.SetStage(MyQuestStage) GoToState("AllDone") ENDEVENT STATE AllDone ENDSTATE Edited March 27, 2023 by maxarturo Link to comment Share on other sites More sharing options...
TheDarkWearoner75 Posted March 27, 2023 Author Share Posted March 27, 2023 Thank you, I'll try it Link to comment Share on other sites More sharing options...
maxarturo Posted March 27, 2023 Share Posted March 27, 2023 Don't forget to fill in the properties after compiling it:MyQuest = Your quest's nameMyStageQuest = The number of the 'quest stage' that will be set when the chicken spawns Link to comment Share on other sites More sharing options...
TheDarkWearoner75 Posted March 29, 2023 Author Share Posted March 29, 2023 Your script works, thank youIs it possible to make it also show SetObjectiveDisplayed and SetObjectiveCompleted?I tried to add them to the script, but it still just shows the transition to another stage Link to comment Share on other sites More sharing options...
maxarturo Posted March 29, 2023 Share Posted March 29, 2023 Those lines are preferable to be inside the quest object, in each stage (in the stage tab). But, if you haven't created 'objectives' inside the quest object, then no objectives will be displayed on screen when those lines are been called. * I do realize that you are a beginner and what I wrote may have 0% sense to you, that's why I would suggest you to watch a video tutorial about basic quest creation, there must be a bunch of them online. Link to comment Share on other sites More sharing options...
Recommended Posts