Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Interface EffectDurationData

    interface EffectDurationData {
        expired: boolean;
        expiry: string | null;
        units:
            | "years"
            | "months"
            | "days"
            | "hours"
            | "minutes"
            | "seconds"
            | "rounds"
            | "turns";
        value: number
        | null;
    }
    Index

    Properties

    expired: boolean

    Is this ActiveEffect expired?

    expiry: string | null

    An identifier of an event at which the Effect will expire: expiration occurs when both the end of the duration and the expiry event are reached. A truly indefinite duration is one in which both duration value and expiry are null.

    units:
        | "years"
        | "months"
        | "days"
        | "hours"
        | "minutes"
        | "seconds"
        | "rounds"
        | "turns"

    The time- or combat-based unit of the duration value

    value: number | null

    The maximum duration of the Effect in the quantity of the unit, with null being initialized to Infinity