The Quest script is a part of Fallout 4’s Papyrus scripting ecosystem. It is included with the base game.
For this script, the Papyrus index knows about:
- 41 events
- 34 functions
- 1 struct
Inheritance Tree
| Script | Extended By |
|---|---|
| — |
Structs
The Papyrus Index is still under construction. Structs have not been implemented yet.
Properties
No properties found.
Events
- Found in:
- Vanilla
eventOnQuestInit()Event received when this quest has just started up - after aliases are filled, and at the same time as the quest startup stage is run.
- Found in:
- Vanilla
eventOnQuestShutdown()Event received when this quest is shut down. Aliases are cleared at this point.
- Found in:
- Vanilla
eventOnStageSet(intauiStageID, intauiItemID)Event called when a quest stage is set.
- Found in:
- Vanilla
eventOnStoryActivateActor(LocationakLocation, ObjectReferenceakActor)- Found in:
- Vanilla
eventOnStoryActorAttach(ObjectReferenceakActor, LocationakLocation)- Found in:
- Vanilla
eventOnStoryAddToPlayer(ObjectReferenceakOwner, ObjectReferenceakContainer, LocationakLocation, FormakItemBase, intaiAcquireType)- Found in:
- Vanilla
eventOnStoryArrest(ObjectReferenceakArrestingGuard, ObjectReferenceakCriminal, LocationakLocation, intaiCrime)- Found in:
- Vanilla
eventOnStoryAssaultActor(ObjectReferenceakVictim, ObjectReferenceakAttacker, LocationakLocation, intaiCrime)- Found in:
- Vanilla
eventOnStoryAttractionObject(ObjectReferenceakActor, ObjectReferenceakObject, LocationakLocation, boolabCommanded)- Found in:
- Vanilla
eventOnStoryBribeNPC(ObjectReferenceakActor)- Found in:
- Vanilla
eventOnStoryCastMagic(ObjectReferenceakCastingActor, ObjectReferenceakSpellTarget, LocationakLocation, FormakSpell)- Found in:
- Vanilla
eventOnStoryChangeLocation(ObjectReferenceakActor, LocationakOldLocation, LocationakNewLocation)- Found in:
- Vanilla
eventOnStoryClearLocation(LocationakOldLocation)- Found in:
- Vanilla
eventOnStoryCraftItem(ObjectReferenceakBench, LocationakLocation, FormakCreatedItem)- Found in:
- Vanilla
eventOnStoryCrimeGold(ObjectReferenceakVictim, ObjectReferenceakCriminal, FormakFaction, intaiGoldAmount, intaiCrime)- Found in:
- Vanilla
eventOnStoryCure(FormakInfection)- Found in:
- Vanilla
eventOnStoryDialogue(LocationakLocation, ObjectReferenceakActor1, ObjectReferenceakActor2)- Found in:
- Vanilla
eventOnStoryDiscoverDeadBody(ObjectReferenceakActor, ObjectReferenceakDeadActor, LocationakLocation)- Found in:
- Vanilla
eventOnStoryEscapeJail(LocationakLocation, FormakCrimeGroup)- Found in:
- Vanilla
eventOnStoryFlatterNPC(ObjectReferenceakActor)- Found in:
- Vanilla
eventOnStoryHackTerminal(ObjectReferenceakComputer, boolabSucceeded)Sent when the player GUESSES in a terminal. This sends an event containing the terminal ref and the success of each guess input into the terminal.
This event does not fire based on your success when you exit the terminal.
Event OnStoryHackTerminal(ObjectReference akComputer, bool abSucceeded) Debug.Trace("akComputer" + akComputer + " / Guess success: " + abSucceeded) EndEvent- Found in:
- Vanilla
eventOnStoryHello(LocationakLocation, ObjectReferenceakActor1, ObjectReferenceakActor2)- Found in:
- Vanilla
eventOnStoryIncreaseLevel(intaiNewLevel)Event called when this quest is started via an increase level story manager event.
- Found in:
- Vanilla
eventOnStoryInfection(ObjectReferenceakTransmittingActor, FormakInfection)- Found in:
- Vanilla
eventOnStoryIntimidateNPC(ObjectReferenceakActor)- Found in:
- Vanilla
eventOnStoryIronSights(ObjectReferenceakActor, FormakWeapon)- Found in:
- Vanilla
eventOnStoryJail(ObjectReferenceakGuard, FormakCrimeGroup, LocationakLocation, intaiCrimeGold)- Found in:
- Vanilla
eventOnStoryKillActor(ObjectReferenceakVictim, ObjectReferenceakKiller, LocationakLocation, intaiCrimeStatus, intaiRelationshipRank)- Found in:
- Vanilla
eventOnStoryLocationLoaded(LocationakLocation)- Found in:
- Vanilla
eventOnStoryMineExplosion(ObjectReferenceakVictim, ObjectReferenceakAttacker)- Found in:
- Vanilla
eventOnStoryNewVoicePower(ObjectReferenceakActor, FormakVoicePower)- Found in:
- Vanilla
eventOnStoryPickLock(ObjectReferenceakActor, ObjectReferenceakLock)- Found in:
- Vanilla
eventOnStoryPickPocket(ObjectReferenceakVictim, boolabSuccess)- Found in:
- Vanilla
eventOnStoryPayFine(ObjectReferenceakCriminal, ObjectReferenceakGuard, FormakCrimeGroup, intaiCrimeGold)- Found in:
- Vanilla
eventOnStoryPlayerGetsFavor(ObjectReferenceakActor)- Found in:
- Vanilla
eventOnStoryRelationshipChange(ObjectReferenceakActor1, ObjectReferenceakActor2, intaiOldRelationship, intaiNewRelationship)- Found in:
- Vanilla
eventOnStoryRemoveFromPlayer(ObjectReferenceakOwner, ObjectReferenceakItem, LocationakLocation, FormakItemBase, intaiRemoveType)- Found in:
- Vanilla
eventOnStoryScript(KeywordakKeyword, LocationakLocation, ObjectReferenceakRef1, ObjectReferenceakRef2, intaiValue1, intaiValue2)- Found in:
- Vanilla
eventOnStoryServedTime(LocationakLocation, FormakCrimeGroup, intaiCrimeGold, intaiDaysJail)- Found in:
- Vanilla
eventOnStoryTrespass(ObjectReferenceakVictim, ObjectReferenceakTrespasser, LocationakLocation, intaiCrime)
Functions
- Found in:
- Vanilla
boolfunctionModObjectiveGlobal(floatafModValue, GlobalVariableaModGlobal, intaiObjectiveID=-1, floatafTargetValue=-1, boolabCountingUp=true, boolabCompleteObjective=true, boolabRedisplayObjective=true, boolabAllowRollbackObjective=false)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.
- Found in:
- Vanilla
kmk- for testing - sets all stages up to lastStage
- Found in:
- Vanilla
Sets the quest stage on the specified quest.
- Found in:
- Vanilla
Returns whether the specified quest stage is set.
- Found in:
- Vanilla
Sets the specified objective as skipped (hidden in this case, if it wasn't completed)
- Found in:
- Vanilla
Flags all objectives on this quest as complete.
- Found in:
- Vanilla
Flags this quest as completed.
- Found in:
- Vanilla
Flags all objectives on this quest as failed.
- Found in:
- Vanilla
Obtains whether the specified stage is done or not.
- Found in:
- Vanilla
Returns whether or not the quest has the given objective.
- Found in:
- Vanilla
Checks to see if this quest is completed.
- Found in:
- Vanilla
Obtains whether the specified quest objective is completed or not.
- Found in:
- Vanilla
Obtains whether the specified quest objective is displayed or not.
- Found in:
- Vanilla
Obtains whether the specified quest objective is failed or not.
- Found in:
- Vanilla
Obtains whether the specified stage is done or not.
- Found in:
- Vanilla
Checks to see if this quest is in the process of starting up.
- Found in:
- Vanilla
Checks to see if this quest is in the process of shutting down.
- Found in:
- Vanilla
Resets all speech challenges in player dialogue scenes for this quest.
- Found in:
- Vanilla
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.
- Found in:
- Vanilla
Sets whether the specified quest objective is completed or not.
- Found in:
- Vanilla
Sets whether the specified quest objective is displayed or not.
- Found in:
- Vanilla
Sets whether the specified quest objective is failed or not.
- Found in:
- Vanilla
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.
- Found in:
- Vanilla
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.
