Category:Fragments

Fragments are Papyrus' version of Result Scripts.

NOTE: Do not have any properties or variables pointing at fragment scripts. For memory reasons, these do not stick around and may cause odd behavior if you try to hold onto them. Since these scripts are all automatically const the compiler will help with this, but it can't protect you if you cast the script to something else (like a base class).

List of Special Variables in Fragments
Quest Stage Fragments:

Script kmyQuest

Perk Fragments:

Actor akActor - the actor with the perk on them

ObjectReference akTargetRef - the object activated (empty if a value perk entry)

Scene Timer Action Fragments:

ReferenceAlias akAlias - that the timer is running on

Terminal Fragments:

ObjectReference akTerminalRef - the terminal initially activated

Topic Info Fragments:

Actor akSpeaker - the actor speaking the topic (none if the speaker isn't an Actor - check akSpeakerRef)

ObjectReference akSpeakerRef - the objectref speaking the topic