The Quest script is a part of Skyrim SE’s Papyrus scripting ecosystem. It is included with the base game, and is extended/modified by modded sources such as Skyrim Script Extender x64 (SKSE).
For this script, the Papyrus index knows about:
- 30 events
- 36 functions
Inheritance Tree
| Script | Extended By | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| — | |||||||||
| |||||||||
| |||||||||
|
Properties
No properties found.
Events
- eventOnStoryAddToPlayer(ObjectReferenceakOwner, ObjectReferenceakContainer, LocationakLocation, FormakItemBase, intaiAcquireType)
Event called when this quest is started via an add to player story manager event.
- eventOnStoryArrest(ObjectReferenceakArrestingGuard, ObjectReferenceakCriminal, LocationakLocation, intaiCrime)
Event called when this quest is started via an arrest story manager event.
- eventOnStoryAssaultActor(ObjectReferenceakVictim, ObjectReferenceakAttacker, LocationakLocation, intaiCrime)
Event called when this quest is started via an assault actor story manager event.
- eventOnStoryBribeNPC(ObjectReferenceakActor)
Event called when this quest is started via a bribe NPC story manager event.
- eventOnStoryCastMagic(ObjectReferenceakCastingActor, ObjectReferenceakSpellTarget, LocationakLocation, FormakSpell)
Event called when this quest is started via a cast magic story manager event.
- eventOnStoryChangeLocation(ObjectReferenceakActor, LocationakOldLocation, LocationakNewLocation)
Event called when this quest is started via a change location story manager event.
- eventOnStoryCrimeGold(ObjectReferenceakVictim, ObjectReferenceakCriminal, FormakFaction, intaiGoldAmount, intaiCrime)
Event called when this quest is started via a crime gold story manager event.
- eventOnStoryCure(FormakInfection)
Event called when this quest is started via a cure story manager event.
- eventOnStoryDialogue(LocationakLocation, ObjectReferenceakActor1, ObjectReferenceakActor2)
Event called when this quest is started via a dialogue story manager event.
- eventOnStoryDiscoverDeadBody(ObjectReferenceakActor, ObjectReferenceakDeadActor, LocationakLocation)
Event called when this quest is started via a discover dead body story manager event.
- eventOnStoryEscapeJail(LocationakLocation, FormakCrimeGroup)
Event called when this quest is started via an escape jail story manager event.
- eventOnStoryActivateActor(LocationakLocation, ObjectReferenceakActor)
Event called when this quest is started via an activate actor story manager event.
- eventOnStoryFlatterNPC(ObjectReferenceakActor)
Event called when this quest is started via a flatter NPC story manager event.
- eventOnStoryHello(LocationakLocation, ObjectReferenceakActor1, ObjectReferenceakActor2)
Event called when this quest is started via a hello story manager event.
- eventOnStoryIncreaseLevel(intaiNewLevel)
Event called when this quest is started via an increase level story manager event.
- eventOnStoryIncreaseSkill(stringasSkill)
Event called when this quest is started via an increase level story manager event.
- eventOnStoryInfection(ObjectReferenceakTransmittingActor, FormakInfection)
Event called when this quest is started via an infection story manager event.
- eventOnStoryIntimidateNPC(ObjectReferenceakActor)
Event called when this quest is started via an intimidate NPC story manager event.
- eventOnStoryJail(ObjectReferenceakGuard, FormakCrimeGroup, LocationakLocation, intaiCrimeGold)
Event called when this quest is started via a jail story manager event.
- eventOnStoryKillActor(ObjectReferenceakVictim, ObjectReferenceakKiller, LocationakLocation, intaiCrimeStatus, intaiRelationshipRank)
Event called when this quest is started via a kill actor story manager event.
- eventOnStoryCraftItem(ObjectReferenceakBench, LocationakLocation, FormakCreatedItem)
Event called when this quest is started via a craft item story manager event.
- eventOnStoryNewVoicePower(ObjectReferenceakActor, FormakVoicePower)
Event called when this quest is started via a new voice power story manager event.
- eventOnStoryPickLock(ObjectReferenceakActor, ObjectReferenceakLock)
Event called when this quest is started via a pick lock story manager event.
- eventOnStoryPayFine(ObjectReferenceakCriminal, ObjectReferenceakGuard, FormakCrimeGroup, intaiCrimeGold)
Event called when this quest is started via a pay fine story manager event.
- eventOnStoryPlayerGetsFavor(ObjectReferenceakActor)
Event called when this quest is started via a player gets favor story manager event.
- eventOnStoryRelationshipChange(ObjectReferenceakActor1, ObjectReferenceakActor2, intaiOldRelationship, intaiNewRelationship)
Event called when this quest is started via a relationship change story manager event.
- eventOnStoryRemoveFromPlayer(ObjectReferenceakOwner, ObjectReferenceakItem, LocationakLocation, FormakItemBase, intaiRemoveType)
Event called when this quest is started via a remove from player story manager event.
- eventOnStoryScript(KeywordakKeyword, LocationakLocation, ObjectReferenceakRef1, ObjectReferenceakRef2, intaiValue1, intaiValue2)
Event called when this quest is started via a script story manager event.
- eventOnStoryServedTime(LocationakLocation, FormakCrimeGroup, intaiCrimeGold, intaiDaysJail)
Event called when this quest is started via a served time story manager event.
- eventOnStoryTrespass(ObjectReferenceakVictim, ObjectReferenceakTrespasser, LocationakLocation, intaiCrime)
Event called when this quest is started via a trespass story manager event.
Functions
- boolfunctionModObjectiveGlobal(floatafModValue, GlobalVariableaModGlobal, intaiObjectiveID=-1, floatafTargetValue=-1, boolabCountingUp=true, boolabCompleteObjective=true, boolabRedisplayObjective=true)
Mods a global variable in a threadsafe way. Optional parameters allow automatic redisplay and completion (or failure) of a quest objective using this global variable.
Flags all objectives on this quest as complete.
Flags this quest as completed.
Flags all objectives on this quest as failed.
Obtains the highest completed stage in this quest.
Obtains whether the specified quest stage is done or not.
A stage is "done" if it has ever been visited with the Quest.SetCurrentStageID(...) or Quest.SetCurrentStageID(...) functions.
GetStageDoneis an alias forIsStageDone.Checks to see if this quest is completed.
Obtains whether the specified quest objective is completed or not.
Obtains whether the specified quest objective is displayed or not.
Obtains whether the specified quest objective is failed or not.
Obtains whether the specified quest stage is done or not.
A stage is "done" if it has ever been visited with the Quest.SetCurrentStageID(...) or Quest.SetCurrentStageID(...) functions.
GetStageDoneis an alias forIsStageDone.Checks to see if this quest is in the process of starting up.
Checks to see if the quest is not enabled anymore but still shutting down
Attempts to set the quest's current stage. If the stage exists, and was successfully set, the function returns true. Otherwise, the function returns false and the stage is unchanged. Is latent and will wait for the quest to start if it has to start the quest. If the stage has any fragments attached to it, the function will also wait for those fragments to finish running before returning.
Sets whether the specified quest objective is completed or not.
Sets whether the specified quest objective is displayed or not.
Sets whether the specified quest objective is failed or not.
NOTE: This function does not work if called from a stage fragment script that is marked as "Complete Quest" or "Fail Quest".
Attempts to set the quest's current stage. If the stage exists, and was successfully set, the function returns true. Otherwise, the function returns false and the stage is unchanged. Is latent and will wait for the quest to start if it has to start the quest. If the stage has any fragments attached to it, the function will also wait for those fragments to finish running before returning.
Attempts to update the stored value of the given global in the instance data for the quest's current instance. The function only returns false on failure which can be caused by calling the function when there is no active instance on the quest or by passing a global not in the quest's text global list.
- Found in:
- SKSE
returns the number of aliases associated with the quest
- Found in:
- SKSE
Assuming the code below is a quest script getting it's own aliases.
int idx = self.GetNumAliases() while idx > 0 idx -= 1 Alias nthAlias = self.GetNthAlias(idx) as Alias ; LocationAlias or ReferenceAlias if nthAlias ; do stuff endIf endWhile- Found in:
- SKSE
Obtains the alias with the specified name that is attached to this quest. This is the name appearing in the Alias Name field of the Reference Alias form.
- Found in:
- SKSE
returns the alias by AlisID
- Found in:
- SKSE
Returns all the aliases of this quest
