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)RTTIre.Hooks.Place( "questQuestsSystem", "GetFact", (QuestsSystem_GetFact x) => { return re.Hooks.CallOriginal<re.msgpack.Int>(); } ); [Msgpack.Gen] public readonly partial record struct QuestsSystem_GetFact( quest.QuestsSystem self, CName factName );int GetFactStr(string factName)RTTIre.Hooks.Place( "questQuestsSystem", "GetFactStr", (QuestsSystem_GetFactStr x) => { return re.Hooks.CallOriginal<re.msgpack.Int>(); } ); [Msgpack.Gen] public readonly partial record struct QuestsSystem_GetFactStr( quest.QuestsSystem self, string factName );void SetFact(CName factName, int value)RTTIre.Hooks.PlaceVoid( "questQuestsSystem", "SetFact", (QuestsSystem_SetFact x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct QuestsSystem_SetFact( quest.QuestsSystem self, CName factName, int value );void SetFactStr(string factName, int value)RTTIre.Hooks.PlaceVoid( "questQuestsSystem", "SetFactStr", (QuestsSystem_SetFactStr x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct QuestsSystem_SetFactStr( quest.QuestsSystem self, string factName, int value );uint RegisterListener(CName factName, IScriptable listener, CName funcName)RTTIre.Hooks.Place( "questQuestsSystem", "RegisterListener", (QuestsSystem_RegisterListener x) => { return re.Hooks.CallOriginal<re.msgpack.Uint>(); } ); [Msgpack.Gen] public readonly partial record struct QuestsSystem_RegisterListener( quest.QuestsSystem self, CName factName, IScriptable? listener, CName funcName );void UnregisterListener(CName factName, uint id)RTTIre.Hooks.PlaceVoid( "questQuestsSystem", "UnregisterListener", (QuestsSystem_UnregisterListener x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct QuestsSystem_UnregisterListener( quest.QuestsSystem self, CName factName, uint id );uint RegisterEntity(CName factName, ent.EntityID entityId)RTTIre.Hooks.Place( "questQuestsSystem", "RegisterEntity", (QuestsSystem_RegisterEntity x) => { return re.Hooks.CallOriginal<re.msgpack.Uint>(); } ); [Msgpack.Gen] public readonly partial record struct QuestsSystem_RegisterEntity( quest.QuestsSystem self, CName factName, ent.EntityID entityId );void UnregisterEntity(CName factName, uint callbackId)RTTIre.Hooks.PlaceVoid( "questQuestsSystem", "UnregisterEntity", (QuestsSystem_UnregisterEntity x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct QuestsSystem_UnregisterEntity( quest.QuestsSystem self, CName factName, uint callbackId );void GetGameplayTimerData(out float seconds, out float percent)RTTIre.Hooks.PlaceVoid( "questQuestsSystem", "GetGameplayTimerData", (QuestsSystem_GetGameplayTimerData x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct QuestsSystem_GetGameplayTimerData( quest.QuestsSystem self, float seconds, float percent );static void BlockPhase(ResRef path)staticextensionPrevents 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)staticextensionState of a phase loaded with LoadPhase
static ulong? LoadPhase(ResRef path)staticextensionLoads 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)staticextensionRemoves a block added with BlockPhase by this bundle. Like the block, only affects phases started afterwards
static bool UnloadPhase(ulong handle)staticextensionReleases 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