Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bcab483

Browse files
committed
update docs for mode
1 parent b6f20ee commit bcab483

2 files changed

Lines changed: 29 additions & 14 deletions

File tree

docs/plugins/mode.rst

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
mode
22
====
3+
Tags:
4+
:dfhack-keybind:`mode`
5+
36
This command lets you see and change the game mode directly.
47

58
.. warning::
@@ -9,13 +12,27 @@ This command lets you see and change the game mode directly.
912
Not all combinations are good for every situation and most of them will
1013
produce undesirable results. There are a few good ones though.
1114

12-
Examples:
15+
Usage:
16+
17+
``mode``
18+
Print the current game mode.
19+
``mode set``
20+
Enter an interactive commandline menu where you can set the game mode.
21+
22+
Examples
23+
--------
24+
25+
Scenario 1:
26+
27+
* You are in fort game mode, managing your fortress and paused.
28+
* You switch to the arena game mode, *assume control of a creature* and then
29+
* switch to adventure game mode.
30+
31+
You just lost a fortress and gained an adventurer.
32+
33+
Scenario 2:
1334

14-
* You are in fort game mode, managing your fortress and paused.
15-
* You switch to the arena game mode, *assume control of a creature* and then
16-
* switch to adventure game mode(1).
17-
You just lost a fortress and gained an adventurer. Alternatively:
35+
* You are in fort game mode, managing your fortress and paused at the Esc menu.
36+
* You switch to the adventure game mode, assume control of a creature, then save or retire.
1837

19-
* You are in fort game mode, managing your fortress and paused at the esc menu.
20-
* You switch to the adventure game mode, assume control of a creature, then save or retire.
21-
* You just created a returnable mountain home and gained an adventurer.
38+
You just created a returnable mountain home and gained an adventurer.

plugins/mode.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ DFHACK_PLUGIN("mode");
1919
DFhackCExport command_result plugin_init ( color_ostream &out, std::vector <PluginCommand> &commands)
2020
{
2121
commands.push_back(PluginCommand(
22-
"mode","View, change and track game mode.",
23-
mode, true,
24-
" Without any parameters, this command prints the current game mode\n"
25-
" You can interactively set the game mode with 'mode set'.\n"
26-
"!!Setting the game modes can be dangerous and break your game!!\n"
27-
));
22+
"mode",
23+
"View, change and track game mode.",
24+
mode,
25+
true));
2826
return CR_OK;
2927
}
3028

0 commit comments

Comments
 (0)