Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Overview
Excerpt |
---|
Toggles "tutorial mode" in a single-player |
...
game |
...
... |
...
Availability
...
Syntax
Code Block | |
---|---|
|
...
| |||||
setTutorialMode(active); |
Parameters
Parameter | Type | Mandatory |
---|
...
Notes | Game version | |||
---|---|---|---|---|
active | Boolean | Make tutorial mode active?
| 3.1 Beta 1 |
Return value
Value | Type | Description | Game version |
---|---|---|---|
undefined | Undefined | The function always returns undefined | 3.1 Beta 1 |
Notes
Tutorial mode is mainly designed for use in the Tutorial map, or as cybersphinx describes it: "It makes the game annoying. Disables saving, enables toggling the reticule buttons..."
Examples
Code Block | |
---|---|
|
...
| |||||||
setTutorialMode(false); // turn off tutorial mode
removeReticuleButton(DESIGN); // has no effect because tutorial mode is switched off
setTutorialMode(true); // activate tutorial mode
removeReticuleButton(DESIGN); // Design reticule button is removed successfully |
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
Availability
Requires:
|
Div | ||||
---|---|---|---|---|
| ||||
ContentsJump to:
|
Div | ||
---|---|---|
| ||
See alsoRelated articles:
|