Sinespace Client  2023.2.17543
Client-side scripting for Sinespace
SineSpace.Scripting.Player.SQuests Class Reference

Public Member Functions

 SQuests (SScript sScript)
 
void StartQuest (int id)
 Forces the quest present in the scene, with ID specified to start More...
 
int GetQuestStep (int questID)
 Forces the quest present in the scene, with ID specified to start More...
 
void ResetQuest (int id)
 Forces the quest present in the scene, with ID specified to reset More...
 
void SetQuestStep (int questID, int step)
 Forces the quest present in the scene, with ID specified to start More...
 
void CompleteQuest (int questID)
 Forces the quest present in the scene, with ID specified to start More...
 
void AbortQuest (int id)
 Forces the quest present in the scene, with ID specified to start More...
 
void AwardAchievement (int id)
 Forces the quest present in the scene, with ID specified to start More...
 
bool HasAchievement (int id)
 Forces the quest present in the scene, with ID specified to start More...
 

Constructor & Destructor Documentation

◆ SQuests()

SineSpace.Scripting.Player.SQuests.SQuests ( SScript  sScript)

Member Function Documentation

◆ AbortQuest()

void SineSpace.Scripting.Player.SQuests.AbortQuest ( int  id)

Forces the quest present in the scene, with ID specified to start

local quest=Space.Quests
local id=99649
function Abort()
quest.AbortQuest(id)
end
Parameters
idID of a quest present in the scene

◆ AwardAchievement()

void SineSpace.Scripting.Player.SQuests.AwardAchievement ( int  id)

Forces the quest present in the scene, with ID specified to start

local quest=Space.Quests
local id=99649
function Award()
end
Parameters
idID of a quest present in the scene

◆ CompleteQuest()

void SineSpace.Scripting.Player.SQuests.CompleteQuest ( int  questID)

Forces the quest present in the scene, with ID specified to start

local quest=Space.Quests
local id=99649
function Complete()
quest.CompleteQuest(id)
end
Parameters
questIDID of a quest present in the scene

◆ GetQuestStep()

int SineSpace.Scripting.Player.SQuests.GetQuestStep ( int  questID)

Forces the quest present in the scene, with ID specified to start

local quest=Space.Quests
local id=99649
function GetSteps()
quest.GetQuestStep(id)
end
Parameters
questIDID of a quest present in the scene

◆ HasAchievement()

bool SineSpace.Scripting.Player.SQuests.HasAchievement ( int  id)

Forces the quest present in the scene, with ID specified to start

local quest=Space.Quests
local id=99649
Space.Log(quest.HasAchievement)
Parameters
idID of a quest present in the scene

◆ ResetQuest()

void SineSpace.Scripting.Player.SQuests.ResetQuest ( int  id)

Forces the quest present in the scene, with ID specified to reset

local quest=Space.Quests
local id=99649
function Reset()
quest.ResetQuest(id)
end
Parameters
idID of a quest present in the scene

◆ SetQuestStep()

void SineSpace.Scripting.Player.SQuests.SetQuestStep ( int  questID,
int  step 
)

Forces the quest present in the scene, with ID specified to start

local quest=Space.Quests
local id=99649
function Set()
quest.SetQuestStep(id,1)
end
Parameters
questIDID of a quest present in the scene
stepThe step of the quest in the scene

◆ StartQuest()

void SineSpace.Scripting.Player.SQuests.StartQuest ( int  id)

Forces the quest present in the scene, with ID specified to start

local quest=Space.Quests
local id=99649
function Start()
quest.StartQuest(id)
end
Parameters
idID of a quest present in the scene
SineSpace.Scripting.Player.SQuests.CompleteQuest
void CompleteQuest(int questID)
Forces the quest present in the scene, with ID specified to start
Definition: SQuests.cs:130
SineSpace.Scripting.Player.SQuests.ResetQuest
void ResetQuest(int id)
Forces the quest present in the scene, with ID specified to reset
Definition: SQuests.cs:79
SineSpace.Scripting.Player.SQuests.AbortQuest
void AbortQuest(int id)
Forces the quest present in the scene, with ID specified to start
Definition: SQuests.cs:157
SineSpace.Scripting.Player.SQuests.SetQuestStep
void SetQuestStep(int questID, int step)
Forces the quest present in the scene, with ID specified to start
Definition: SQuests.cs:106
SineSpace.Scripting.Player.SQuests.GetQuestStep
int GetQuestStep(int questID)
Forces the quest present in the scene, with ID specified to start
Definition: SQuests.cs:54
SineSpace.Scripting.Player.SQuests.AwardAchievement
void AwardAchievement(int id)
Forces the quest present in the scene, with ID specified to start
Definition: SQuests.cs:179
SineSpace.Scripting.Player.SQuests.StartQuest
void StartQuest(int id)
Forces the quest present in the scene, with ID specified to start
Definition: SQuests.cs:32