yojeff Posted November 14, 2018 Share Posted November 14, 2018 Is there a way to change a script value via the console? I have a mod that- Started a new quest after finishing another one, but it was a silent start (Stage 0, no message)- The quest adds a topic to a character, and then setStage 10- You then visit a first cave, that sends you to a second cave, and a script variable is used to setStage 30. The problem is : I visited the second cave (many hours ago, while doing something else). The Stage is now 30, as set in the script. The initial topic is not available anymore. I don't want to touch the script, and risk causing problems in the saved game, and and don't want to deactivate the mod. Is there a way to change a script value via the console? Scriptname GS26Script short EnteredIrony begin gamemode if ( EnteredIrony == 0 ) && ( player.GetInCell FortIrony ) && ( GetStage GS26 < 30 ) set EnteredIrony to 1 endif if ( EnteredIrony == 1 ) && ( player.GetInCell FortIrony == 0 ) && ( Getstage GS26 < 30 ) setstage gs26 30 endif end Link to comment Share on other sites More sharing options...
DrakeTheDragon Posted November 14, 2018 Share Posted November 14, 2018 So, the quest is named "GS26". That's all we needed to know. Yes, you can set "quest"-script variables directly through console, you just need to know the quest's name.Unlike, um, almost everything else quest's EditorIds are known inside the console and you don't need to obtain their hexadecimal mod-index-dependent FormId first. So, in your case this command line will reset the variable EnteredIrony back to 0: set GS26.EnteredIrony to 0 This will, however, not change the "stage" of the quest, and as such, in this case, it won't have any immediate effect.You'll need to set the quest stage back again, too, through the console, like so: SetStage GS26 <stage> However, you didn't post the script that adds the topic, so I don't know which of the 2 options, or if any at all, will give you the topic back. Link to comment Share on other sites More sharing options...
yojeff Posted November 15, 2018 Author Share Posted November 15, 2018 Thanks for the help. I used the command to change the variable. It worked. (No error message.) (But what happens if many quests share the same name?) I used the SetStage command. The Stage stays at 30. I've read the Console Command Tutorial on UESP (Should have begun by that...), and it says that you can't go back to a previous stage. I've tried modifying the conditions on the topics, and then using AddTopic ingame, but the topics doesn't appear. So I used SetStage 10 and 20, and it (kinda) worked. Link to comment Share on other sites More sharing options...
Recommended Posts