BlackICE Scripting

class quest

QuestsSystem

quest.QuestsSystem

  • 0 properties
  • 14 functions

Extends quest.IQuestsSystem game.IReplicatedGameSystem game.IGameSystem IScriptable ISerializable

Properties

None.

Functions

  • int GetFact(CName factName) RTTI
  • int GetFactStr(string factName) RTTI
  • void SetFact(CName factName, int value) RTTI
  • void SetFactStr(string factName, int value) RTTI
  • uint RegisterListener(CName factName, IScriptable listener, CName funcName) RTTI
  • void UnregisterListener(CName factName, uint id) RTTI
  • uint RegisterEntity(CName factName, ent.EntityID entityId) RTTI
  • void UnregisterEntity(CName factName, uint callbackId) RTTI
  • void GetGameplayTimerData(out float seconds, out float percent) RTTI
  • static void BlockPhase(ResRef path) staticextension

    Prevents a quest phase from running. Can be used to keep a part of the open world content out of a session for example. The phase still starts, with nothing in it. Only affects phases started afterwards. Blocks are owned by the calling bundle and are removed when it unloads.

    Only phases that the game loads from their own .questphase file can be blocked. Embedded phases have no path to filter on and thus can't be blocked

  • static quest.QuestPhaseState GetPhaseState(ulong handle) staticextension

    State of a phase loaded with LoadPhase

  • static ulong? LoadPhase(ResRef path) staticextension

    Loads a quest phase (.questphase) and runs it under its own root quest. Returns a handle for UnloadPhase / GetPhaseState. Loading a phase that is already loaded (by any bundle) increases its refcount but doesn't load it again. Returns null right away when the path is not in the game depot, the reason is logged. A path to an incompatible resource fails later, GetPhaseState then reports Failed. Handles are owned by the calling bundle

    path
    Depot path, e.g. base\open_world\vendors\open_world_vendors.questphase
  • static void UnblockPhase(ResRef path) staticextension

    Removes a block added with BlockPhase by this bundle. Like the block, only affects phases started afterwards

  • static bool UnloadPhase(ulong handle) staticextension

    Releases a handle created by LoadPhase. The phase stops once no handle references it. Stopping ends the phase's logic (scenes, interactions), but spawned NPCs, activated communities, facts and map pins remain. You can use BlockPhase to prevent specific content from loading. Returns false for unknown handles