Skip to content

Get Sansar

Script API

QuestCharacter

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Class Namespace Sansar.Simulation Inherits Sansar.Script.InstanceInterface Added in 35.1.0

The QuestCharacter is the interface for a Quest Character

public class QuestCharacter : Sansar.Script.InstanceInterface

Remarks

There is as yet no way to create Quest Characters, but this functionality is coming soon.

Members at a glance

KindMembers
MethodsGetCharacterTracker · ShowQuests · TurnInQuests

Methods

GetCharacterTracker

Added in 36.0.1
public CharacterTracker GetCharacterTracker(     Sansar.Script.SessionId sessionId )

Track a user’s progress through the quests associated with this character.

ParameterTypeDescription
sessionIdSansar.Script.SessionIdThe sessionId of the user.

Returns: CharacterTracker

ShowQuests

Added in 35.1.0
public void ShowQuests(Sansar.Script.SessionId sessionId)

Show a UI panel displaying this characters’ quests.

ParameterTypeDescription
sessionIdSansar.Script.SessionIdThe sessionId of the user to open the ui panel for.

TurnInQuests

Added in 35.1.0
public void TurnInQuests(Sansar.Script.SessionId sessionId)

Turn in any quests that a user has completed for this character, and show the quest character ui.

ParameterTypeDescription
sessionIdSansar.Script.SessionIdThe sessionId of the user to complete quests for.
Added in 35.1.0
public void TurnInQuests(     Sansar.Script.SessionId sessionId,     Action<Sansar.Script.OperationCompleteEvent> handler )

Turn in any quests that a user has completed for this character, and show the quest character ui.

ParameterTypeDescription
sessionIdSansar.Script.SessionIdThe sessionId of the user to complete quests for.
handlerAction<Sansar.Script.OperationCompleteEvent>Handler to be called when the event completes.

Used in examples

Generated from the Sansar 47.10.0 client ScriptApi snapshot.