dfhack/scripts/multicmd.rb

17 lines
373 B
Ruby

2015-02-14 20:53:06 -07:00
# run many dfhack commands separated by ;
2015-10-23 22:10:15 -06:00
=begin
multicmd
========
Run multiple dfhack commands. The argument is split around the
character ; and all parts are run sequentially as independent
dfhack commands. Useful for hotkeys.
Example::
multicmd locate-ore IRON ; digv ; digcircle 16
=end
2015-02-14 20:53:06 -07:00
$script_args.join(' ').split(/\s*;\s*/).each { |cmd| df.dfhack_run cmd }