Classes
PlayerMission (missionObject)
GetParent() - Returns the parent object (PlayerController)
SetID(number ID)
Get^()
SetTypeID(string typeId)
Get^()
GetType() - Returns missionTypeObject
SetTier(number tier)
Get^()
SetSlot(number slot)
Get^()
SetRollID(number rollId)
Get^()
SetCurrentValue(number progress)
Get^
SetTargetValue(number target)
Get^
SetReward(number reward)
Get^
SetNeedsSave(bool save)
Get^
SetNeedsSync(bool sync)
Get^
SetWatched(bool watched)
Get^
AddProgress(number add) - Basically SetCurrentValue + add
DoSave() - Forces to save the current progress
RequestSync(bool force = false) - Syncs the mission with the player if needed or force == true
End(number reason, bool preventNetworking)
Set-Functions are not listed on purpose.
PlayerController (playerController)
GetPlayer()
GetSteamID64()
GetSlots() - not used atm
GetMissions() - Returns a table that contains all mission objects of the player
AddMissions(missionObject mission)
RemoveMission(missionObject mission, number reason)
Get(string/missionTypeObject type) - used to check if the controller has a mission of this type
GetByTypeID() - alias of the function above
GetByID(number missionId)
GetEmptySlots()
Roll (rollObject)
GetID()
GetTime() - unix timestamp
MissionType (missionTypeObject)
SetID(string id)
Get^()
SetDisabled(b disabled)
Get^()
SetImgurIconID(string id)
Get^()
SetDescription(string desc) - ":value:" will be replaced with the current progress (formatted)
Get^()
SetFormatFunction(function func(number value)) - Return the formatted value
Get^()
SetEligibleFunction(function func(player p)) - Return false if the player can't get this mission type assigned
Get^()
SetTiers()
Get^()
SetSaveOnChange(b save) - save instantly on progress change?
Get^()
SetNetworkOnChange(b network) - network instantly on progress change?
Get^()
FormatValue(value) - returns the value, formatted by the format function defined above
AddTier(goal, rewardOverride)
Register() - registers the mission