File tree 1 file changed +1
-15
lines changed
1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change 1
1
-- create unit at pointer or given location
2
2
-- wraps modtools/create-unit.lua
3
- local usage = [====[
4
-
5
- spawnunit
6
- =========
7
- Provides a simpler interface to `modtools/create-unit`, for creating units.
8
-
9
- Usage: ``spawnunit [-command] RACE CASTE [NAME] [x y z] [...]``
10
-
11
- The ``-command`` flag prints the generated `modtools/create-unit` command
12
- instead of running it. ``RACE`` and ``CASTE`` specify the race and caste
13
- of the unit to be created. The name and coordinates of the unit are optional.
14
- Any further arguments are simply passed on to `modtools/create-unit`.
15
-
16
- ]====]
17
3
18
4
local guidm = require (' gui.dwarfmode' )
19
5
local utils = require (' utils' )
@@ -28,7 +14,7 @@ local show_command = false
28
14
local args = {... }
29
15
local first_arg = (args [1 ] or ' ' ):gsub (' ^-*' , ' ' )
30
16
if first_arg == ' help' or # args < 2 then
31
- print (usage )
17
+ print (dfhack . script_help () )
32
18
return
33
19
elseif first_arg == ' command' then
34
20
show_command = true
You can’t perform that action at this time.
0 commit comments