I think I understand the basics of how to do this, but as a novice scripter, I am sometimes confused on how to use else, if/endiff and elseif in a script that checks for multiple things. I can write it in English, but I need help with the actual code.
(In English it would be: "if Favor Quest 250 is at stage 25 or higher, enable my banner and check the next quest. If the next quest is at stage XX or higher enable the banner or object I placed for that quest, and keep going through the other quests I want to check doing the same thing...")
I think I need to just create a quest that I will start at the stage where my display room becomes available to the player. The script on the quest will need to run to check what the player has done so fay, and enable the stuff he has already completed, and then track future progress from there. So, is this on the right track?
Scriptname BalokDisplayRoomQuestScript extends QuestQuest property Favor250 auto ;MarcarthQuest property Favor252 auto ;SolitudeQuest property Favor253 auto ;WhiterunObjectReference Property MyMarcarthBanner AutoObjectReference Property MySolitudeBanner AutoObjectReference Property MyWhiterunBanner AutoEvent OnInit() RegisterForSingleUpdate(120)EndEventEvent OnUpdate() if (Favor250.GetStageDone(25)) MyMarcarthBanner.Enable() elseif (Favor252.GetStageDone(25)) MySolitudeBanner.Enable() elseif (Favor253.GetStageDone(25)) MyWhiterunBanner.Enable() endifEndEvent
I will be doing this for WAY more than those 3 quests, and I will probably be able to use "if (QuestXXX.IsCompleted())" as well, but this is the gist of what I'm wanting to do.