dfhack/scripts/multicmd.rb

5 lines
169 B
Ruby

2013-04-12 07:07:42 -06:00
# run many dfhack commands separated by ;
# ex: multicmd locate-ore IRON ; digv ; digcircle 16
$script_args.join(' ').split(/\s*;\s*/).each { |cmd| df.dfhack_run cmd }