Body, Mind & Soul — API Reference
    Preparing search index...

    Function postActionLogMessage

    • Post a custom message to the Action Log with optional actor context and metadata. Convenience wrapper around addActionLogEntry() that derives actor/target names from Actor Documents and builds the partial entry object.

      Spec fields: type string — entry type; one of "damage", "restore", "check", "rest", "chat", "cardDraw", "shuffle", or "negate" (default: "chat") actor BodyMindSoulActor | null — optional Actor Document; if provided and actorName is not explicitly given, derives actorName from .name targetActor BodyMindSoulActor | null — optional target Actor Document; if provided and targetName is not explicitly given, derives targetName from .name actorName string | null — optional explicit override for actor name; takes precedence over actor.name when both are given targetName string | null — optional explicit override for target name; takes precedence over targetActor.name when both are given visibility string — "public" (all users), "gm" (GM only), or "self" (GM + ownerId user) (default: "public") ownerId string | null — ID of the user who can see "self" visibility entries (default: null) rollTotal number | null — optional total roll value to record (default: null)

      Parameters

      • content: string

        The main entry text or flavor

      • Optionaloptions: {
            actor?: any;
            actorName?: string;
            ownerId?: string;
            rollTotal?: number;
            targetActor?: any;
            targetName?: string;
            type?: string;
            visibility?: string;
        } = {}

        Configuration object (see Spec fields above)

      Returns void