# create first necessity items under cursor =begin create-items ============ Spawn items under the cursor, to get your fortress started. The first argument gives the item category, the second gives the material, and the optionnal third gives the number of items to create (defaults to 20). Currently supported item categories: ``boulder``, ``bar``, ``plant``, ``log``, ``web``. Instead of material, using ``list`` makes the script list eligible materials. The ``web`` item category will create an uncollected cobweb on the floor. Note that the script does not enforce anything, and will let you create boulders of toad blood and stuff like that. However the ``list`` mode will only show 'normal' materials. Examples:: create-items boulders COAL_BITUMINOUS 12 create-items plant tail_pig create-items log list create-items web CREATURE:SPIDER_CAVE_GIANT:SILK create-items bar CREATURE:CAT:SOAP create-items bar adamantine =end category = $script_args[0] || 'help' mat_raw = $script_args[1] || 'list' count = $script_args[2] category = df.match_rawname(category, ['help', 'bars', 'boulders', 'plants', 'logs', 'webs', 'anvils']) || 'help' if category == 'help' puts < 5 df.curview.feed_keys(:CURSOR_DOWN_Z) df.curview.feed_keys(:CURSOR_UP_Z) else df.curview.feed_keys(:CURSOR_UP_Z) df.curview.feed_keys(:CURSOR_DOWN_Z) end