Where is the quests completed by faction information stored.

Post » Tue Jun 19, 2012 2:11 pm

... and where/what are the scripts located that get and store the information.

In the General Stats >> Quests screen in-game, they have a list of the joinable factions and the number of quests you've completed for each one (including the main quest and other quest tracking)...

I'm looking for the info, but it seems to be eluding me. :/

Just an aside, I'm wondering how the tracking is done for the civil war, since I don't believe the quests are the same amount for SC and Imp... could be wrong on that, might be confusing some of the repeating quests...

(I'm also trying to find that damned faction symbols used on the quests screen for each faction... anyone know where those are stored?)
User avatar
Juan Suarez
 
Posts: 3395
Joined: Sun Nov 25, 2007 4:09 am

Post » Tue Jun 19, 2012 7:38 pm

Which questline/faction a quest belongs to is controlled by the "Type" drop down box on the Quest Data tab.
Faction quests have something like "Thieves Guild", and "Miscellaneous", for example, causes quests to be treated as miscellaneous objectives.
You will also notice that dummy quests and invisible quests for scripting purposes will have "None" as the type, even if they obviously relate to the thieves guild.
So far, the counting of these quests appears to be handled by the game code itself ... as part of the stats system.
Limited access to the stats is available via the functions:
http://www.creationkit.com/IncrementStat_-_Game
http://www.creationkit.com/QueryStat_-_Game

You can have a look at the script AchievementsScript.psc for examples of some stats being queries.
Presumably you can access any stat using the string that represents it ...


The quests completed numbers are incremented when you complete them and DECREMENTED if you fail them, from which I surmise that it is based on objectives, not quest stages.
Though perhaps a "stop()" command may need to be issued by the quest for the game to decide to increment or decrement the counter?
You can complete or fail a quest multiple times, for example the quests given to you by Vex and Delvin can quickly give you a negative "Thieves Guild Quests Completed".

The (displayed) quests in the Civil War all have Type = "Civil War".
Both the imperial and stormcloak versions of quests have this, and when the player completes either one, the Civil War Quests Completed stat is (automatically?) incremented by the game.


The "Questlines Completed" stat, however, is incremented directly by the quest scripts:
Game.IncrementStat("Questlines Completed",1)
Have a look at the quest MG08, stage 200.



The "Type" of the quest presumably also controls the symbol that is displayed in the menu.
I'm afraid I have no idea where those images are. I expect their behavior might be controlled by the (flash?) UI files for the journal.
I also don't know hope you can create new quest "Type"s. I sincerely hope you can ,and they aren't hardcoded somehow ...
User avatar
Fanny Rouyé
 
Posts: 3316
Joined: Sun Mar 25, 2007 9:47 am

Post » Tue Jun 19, 2012 6:34 pm

The first bit of info I knew (but it's good that you spelled it out where to find who a quest belongs to... in case others didn't)...

Thanks for naming the script... I didn't even think to look at/for an achievement script.

I'm not keen on the decremental-ism... for my purposes, if it can be done, yea, the stop() is going to be needed... And if it doesn't work, maybe add a new function that fires off every time something is decremented that it adds one back. *ponder* Might have to do something about the repeatable quests as well... undecided about that.

*sigh* I was afraid of that. having the civil war questline completed regardless of SC or Imp is rather irritating... great, more scripts, functions, and globals. :/

Thanks for pointing out the MG08 line number... I've looked at the MG quests, but only in scanning mod (looking for other specific things, so I completely glossed over completed bit there)

I knew the type controlled the image, I've decompiled and looked at the quest journal ui files... but either I missed the links to the images, or they have them named something funky.

I did not however, look at the achievements ui (stats) screen decompiled files... perhaps they're listed in there...

Thank for the reply, much appreciated!
User avatar
D IV
 
Posts: 3406
Joined: Fri Nov 24, 2006 1:32 am


Return to V - Skyrim