Autonauts Modding
ModQuest Class Reference

Public Member Functions

void SetQuestComplete (string QuestID, bool DoCeremony=false)
 
void SetAllQuestsComplete ()
 
bool IsObjectTypeUnlocked (string ObjectTypeString)
 

Member Function Documentation

◆ IsObjectTypeUnlocked()

bool ModQuest.IsObjectTypeUnlocked ( string  ObjectTypeString)

Is an item unlocked by Quest/Research? Works for objects and buildings.

Version
136.27
Parameters
ObjectTypeString- String - The Type of Object to query - Required
Returns
Boolean - True if the object type is unlocked (By Quest)
Example
ModQuest.IsObjectTypeUnlocked("MetalCog")
Note
Can be used in functions: AfterLoad(), AfterLoad_CreatedWorld(), AfterLoad_LoadedWorld(), OnUpdate()

◆ SetAllQuestsComplete()

void ModQuest.SetAllQuestsComplete ( )

Set all quests to complete

Version
135.6
Parameters
None
Returns
None
Example
ModQuest.SetAllQuestsComplete()
Note
Can be used in functions: AfterLoad(), AfterLoad_CreatedWorld(), AfterLoad_LoadedWorld(), OnUpdate()

◆ SetQuestComplete()

void ModQuest.SetQuestComplete ( string  QuestID,
bool  DoCeremony = false 
)

Set a quest to complete

Version
135.6
Parameters
QuestID- String - The Quest identifier as a string e.g. AcademyBaking - Required
DoCeremony- Boolean - Should the ceremony play? Defaults to false
Returns
None
Example
ModQuest.SetQuestComplete("AcademyBaking")
Note
Can be used in functions: AfterLoad(), AfterLoad_CreatedWorld(), AfterLoad_LoadedWorld(), OnUpdate()

The documentation for this class was generated from the following file: