User object
This is an instance of the User
class regarding the current user
getMagicVariable ()
Get the value of a magic variable
Parameter | Type | Description |
|
| Name of the magic variable |
Example
setMagicVariable ()
Assign a value to a magic variable
Parameter | Type | Description |
|
| Name of the magic variable |
|
| Value of the magic variable |
Example
In ConverseScript
getVariable ()
Get the value of a global variable
Parameter | Type | Description |
|
| Name of the global variable |
setVariable ()
Assign a value to a global variable
Parameter | Type | Description |
|
| Name of the global variable |
|
| Value of the global variable |
saveSession ()
Save a session
Parameter | Type | Description |
|
| The properties of the session |
retrieveSession ()
Return the saved session
setLang ()
Assign the language of the user
Parameter | Type | Description |
|
| Language to assign (example: |
getLang ()
Retrieves the user's language
toJson ()
Returns all the data of the user in order to save his progress in the script
fromJson ()
Restores the user's progress thanks to the JSON saved by toJson()
Parameter | Type | Description |
|
| User progress |
Last updated