Initial data provided to construct the Actor document
Optionalcontext: Context<TokenDocument>The document context, see foundry.abstract.Document
Internal_itemCached result of .itemTypes
InternalTemporary solution until Foundry v12 where visibility of AE no longer controls if it's temporary.
InternalRetrieve valid skill change targets for this actor.
InternalChange target paths for spellbooks on the actor.
Returns first active owner, favoring players and GM as fallback.
An array of all context note data for this actor.
All skill IDs relevant to this actor
Cached override
Actor's current race item.
Whether current user can see through this actor.
Spell Failure Percentage as number from 0 to 100.
The VisionSharingSheet instance for this actor
InternalComputes armor penalties for this actor.
The resulting penalties from armor.
InternalComputes encumbrance values for this actor.
The resulting penalties from encumbrance.
Abstract_detectProtected Abstract_finalizeInternalHandle condition track toggling post active effect creation if there's still some issues.
Updated active effect documents
InternalParent document
Collection name
Created documents
Creation data for the documents
Create context options
Triggering user's ID
InternalParent document
Collection name
Document array
Document ID array
Delete context
User ID
Internal ExperimentalParse resistance entry
Primarily called from parseResistances
OptionalresistanceType: "dr" | "er" = "dr"Protected_prepareProtected_prepareProtected_prepareProtected Abstract_prepareProtected Abstract_prepareProtected InternalAdd actor type specific changes.
Array of changes
Protected_resetProtected_restingInternalResize token sizes based on actor size.
Ignores tokens with static size set.
OptionalsizeKey: string = undefinedSize key to update to. If not provided, will use actor's current size.
Wrapper for the static function, taking this actor as the only target.
Value to adjust health by. Positive values deal damage, negative values heal.
Optionaloptions: any = {}Additional options. This object will be transformed in-place as the damage application is processed.
Converts currencies of the given category to the given currency type
Optionalcategory: "currency" | "altCurrency" = "currency"Currency category, altCurrency is for weightless
Optionaltype: "pp" | "gp" | "sp" | "cp" = "pp"Target currency.
Updated document or undefined if no update occurred.
Enable and configure a new spellbook.
Optionalcasting: {Book casting configuration
Optionalability?: stringSpellcasting ability score ID
Optionalcantrips?: booleanHas cantrips?
Optionalclass?: stringClass tag
Optionaldomain?: numberDomain/School slots
Optionaloffset?: numberLevel offset
Optionalprogression?: "low" | "high" | "med"Casting progression type
Optionalspells?: "arcane" | "divine" | "psychic" | "alchemy"Spell/spellcasting type
Optionaltype?: "prepared" | "spontaneous" | "hybrid"Spellbook type
Optionaloptions: { commit?: boolean } = {}Additional options
Enrich context notes with item specific roll data.
Adds enriched array to each note object.
Context notes
OptionalrollData: objectRoll data instance
Optionaloptions: { roll?: boolean } = {}Additional options
Deletes expired temporary active effects and disables linked expired buffs.
Optionaloptions: {Additional options
Optionalcontext: DocumentModificationContext = {}Document update context
Generates an array with all the active context-sensitive notes for the given context on this actor.
The context to draw from.
Optionalall: boolean = trueRetrieve notes meant for all, such as notes targeting all skills.
Returns a list of already parsed context notes.
The context to draw notes from.
Optionaloptions: { all?: boolean; roll?: boolean } = {}Additional options
Optionalall?: booleanOption to pass to getContextNotes
Optionalroll?: booleanWhether to roll inline rolls or not.
The resulting notes, already parsed.
Get total currency in category.
Optionalcategory: "currency" | "altCurrency" = "currency"Currency category.
Optionaloptions: { inLowestDenomination?: boolean } = {}Additional options
ProtectedgetReturn feat counts.
An object with a property value which refers to the current used feats, and max which refers to the maximum available feats.
AbstractgetProtectedgetAbstractgetProtectedgetRetrieve source details regarding a change target.
Change target path
Create a new Token document, not yet saved to the database, which represents the Actor, and apply actor size to it.
Optionaldata: object = {}Additional data, such as x, y, rotation, etc. for the created token data
Optionaloptions: object = {}The options passed to the TokenDocument constructor
The created TokenDocument instance
ProtectedgetProtectedgetProtectedmodifyProtectedparseProtectedHelper function for actor energy resistance and damage reduction feedback.
Value to check resistances for.
Entry to label mapping of resistances or reductions.
Perform all changes related to an actor resting, including restoring HP, ability scores, item uses, etc.
Options affecting an actor's resting
Updates applied to the actor, if resting was completed
ProtectedprepareCMBProtectedprepareProtectedprepareRecharge all owned items.
Optionaloptions: RechargeActorItemsOptions = {}Additional options
Roll an Ability Test Prompt the user for input regarding Advantage/Disadvantage and any Situational Bonus
The ability ID (e.g. "str")
Optionaloptions: ActorRollOptions = {}Additional options
The chat message if one was created, or its data if not. void if the roll was cancelled.
Roll a generic attack
Optionaloptions: ActorRollOptions = {}Roll options
The chat message if one was created, or its data if not. void if the roll was cancelled.
Roll basic BAB check
Optionaloptions: ActorRollOptions = {}Additional options
The chat message if one was created, or its data if not. void if the roll was cancelled.
Roll a Caster Level check using a particular spellbook of this actor
Spellbook identifier
Optionaloptions: ActorRollOptions = {}Roll options
The chat message if one was created, or its data if not. void if the roll was cancelled.
Roll a concentration check using a particular spellbook of this actor
Spellbook identifier
Optionaloptions: ActorRollOptions = {}Roll options
The chat message if one was created, or its data if not. void if the roll was cancelled.
Roll initiative for one or multiple Combatants associated with this actor. If no combat exists, GMs have the option to create one. If viewing a full Actor document, all Tokens which map to that actor will be targeted for initiative rolls. If viewing a synthetic Token actor, only that particular Token will be targeted for an initiative roll.
Optionaloptions: {Options which configure how initiative is rolled
Optionalbonus?: null | stringFormula for bonus to initiative
OptionalcreateCombatants?: booleanCreate new Combatant entries for tokens associated with this actor.
Optionaldice?: null | stringFormula override for dice to roll
OptionalinitiativeOptions?: objectOptions to pass to ()
OptionalrerollInitiative?: booleanReroll initiative for existing Combatants
OptionalrollMode?: stringRoll mode override
OptionalskipDialog?: booleanSkip roll dialog
Optionaltoken?: TokenDocumentPFFor which token this initiative roll is for
The updated Combat document in which initiative was rolled, or null if no initiative was rolled
Roll a specific saving throw
Identifier for saving throw type.
Optionaloptions: ActorRollOptions = {}Roll options.
The chat message if one was created, or its data if not. void if the roll was cancelled.
Roll a Skill Check
The skill id (e.g. "per", "prf.prf1", or "crf.alchemy")
Optionaloptions: ActorRollOptions = {}Options which configure how the skill check is rolled
void if the roll was cancelled.Easy way to set a condition.
A direct condition key, as per pf1.registry.conditions, such as shaken or dazed.
Whether to enable (true) the condition, or disable (false) it. Or object for merging into the active effect as part of enabling.
Optionalcontext: objectUpdate context
Condition ID to boolean mapping of actual updates.
Set state of multiple conditions. Also handles condition tracks to minimize number of updates.
Condition ID to boolean (or update data) mapping of new condition states. See ()
Optionalcontext: object = {}Update context
Condition ID to boolean mapping of actual updates.
Easy way to toggle a condition.
A direct condition key, as per pf1.registry.conditions, such as shaken or dazed.
OptionalaeData: objectExtra data to add to the AE if it's being enabled
Condition ID to boolean mapping of actual updates.
Override to support toggling buffs from token HUD
Called by TokenHUD
Status effect ID
Additional options
Synced with Foundry v12.331
ProtectedupdateStatic_getInternalSource info
StaticapplyApply damage to the token or tokens which are currently controlled.
If Shift is held, will prompt for adjustments based on damage reduction and energy resistances.
The amount of damage to deal. Negative values heal instead.
Optionaloptions: any = {}Object containing default settings for overriding
StaticgetStaticgetGet melee and reach maximum ranges.
Actor size as size key or number
Actor stature
StaticgetStaticget
Extend the base Actor class to implement additional game system logic.