rednode API - v0.80.1
    Preparing search index...

    Variable journalConst

    journal: {
        entry(path: string, kind?: JournalKind): Promise<JournalEntry | null>;
        setState(
            path: string,
            state: JournalState,
            kind?: JournalKind,
        ): Promise<boolean>;
        track(path: string, kind?: JournalKind): Promise<boolean>;
        tracked(): Promise<{ hash: number; path: string } | null>;
    } = ...

    The journal: the quests, phases and objectives the player sees, by their path.

    Type Declaration

    • entry: function
    • setState: function
    • track: function
    • tracked: function
      • The tracked entry: its path, built from its id and its parents' (quests/…/objective; unverified that it matches every path the journal takes), and its hash. null when nothing is tracked.

        Returns Promise<{ hash: number; path: string } | null>

    import { journal } from "rednode";

    const e = await journal.entry("quests/side_quests/sq030/...", "objective");
    if (e?.state === "Active") await journal.setState(e.path, "Succeeded");