# designate an area for digging according to a plan in csv format raise "usage: digfort " if not $script_args[0] planfile = File.read($script_args[0]) if df.cursor.x == -30000 puts "place the game cursor to the top-left corner of the design" throw :script_finished end # a sample CSV file # empty lines are ignored # a special comment with start(dx, dy) means the actual patterns starts at cursor.x-dx, cursor.y-dy # the CSV file should be saved in the main DF directory, alongside of Dwarf Fortress.exe sample_csv = <