The QuestCharacter is the interface for a Quest Character
public class QuestCharacter : Sansar.Script.InstanceInterfaceRemarks
There is as yet no way to create Quest Characters, but this functionality is coming soon.
Members at a glance
| Kind | Members |
|---|---|
| Methods | GetCharacterTracker · 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.
| Parameter | Type | Description |
|---|---|---|
sessionId | Sansar.Script.SessionId | The 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.
| Parameter | Type | Description |
|---|---|---|
sessionId | Sansar.Script.SessionId | The 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.
| Parameter | Type | Description |
|---|---|---|
sessionId | Sansar.Script.SessionId | The 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.
| Parameter | Type | Description |
|---|---|---|
sessionId | Sansar.Script.SessionId | The sessionId of the user to complete quests for. |
handler | Action<Sansar.Script.OperationCompleteEvent> | Handler to be called when the event completes. |
Used in examples
Generated from the Sansar 47.10.0 client ScriptApi snapshot.