Shorten wrapped "ls" descriptions in scripts

develop
PeridexisErrant 2015-11-10 13:21:00 +11:00
parent feff83cedc
commit fc9e2fbff7
39 changed files with 52 additions and 49 deletions

@ -1,4 +1,4 @@
# View or set level of cavern adaptation for the selected unit or the whole fort # View or set cavern adaptation levels
# based on removebadthoughts.rb # based on removebadthoughts.rb
=begin =begin

@ -1,7 +1,4 @@
-- Adjust all attributes, personality, age and skills of all dwarves in play -- Adjust all attributes of all dwarves to an ideal
-- without arguments, all attributes, age & personalities are adjusted
-- arguments allow for skills to be adjusted as well
-- WARNING: USING THIS SCRIPT WILL ADJUST ALL DWARVES IN PLAY!
-- by vjek -- by vjek
--[[=begin --[[=begin
@ -12,6 +9,9 @@ Runs the equivalent of `rejuvenate`, `elevate-physical`, `elevate-mental`, and
which sets every stat to an ideal - legendary skills, great traits, and which sets every stat to an ideal - legendary skills, great traits, and
easy-to-satisfy preferences. easy-to-satisfy preferences.
Without arguments, all attributes, age & personalities are adjusted.
Arguments allow for skills to be adjusted as well.
=end]] =end]]
function rejuvenate(unit) function rejuvenate(unit)
if unit==nil then if unit==nil then

@ -1,4 +1,4 @@
# Select cropt to plant based on current stocks
=begin =begin
autofarm autofarm

@ -1,10 +1,14 @@
-- Executes an autolabor command for each labor where skill level influences output quality. -- Run an autolabor command for skill-affected labors.
--[[=begin --[[=begin
autolabor-artisans autolabor-artisans
================== ==================
Runs `autolabor`, with settings tuned for small but highly skilled workforces. Runs an `autolabor` command, for all labors where skill level
influences output quality. Examples::
autolabor-artisans 0 2 3
autolabor-artisans disable
=end]] =end]]
local artisan_labors = { local artisan_labors = {

@ -1,4 +1,4 @@
-- This script will brainwash a dwarf, modifying their personality -- Brainwash a dwarf, modifying their personality
-- usage is: target a unit in DF, and execute this script in dfhack -- usage is: target a unit in DF, and execute this script in dfhack
-- by vjek -- by vjek
--[[=begin --[[=begin

@ -1,4 +1,4 @@
# Make food and plants decay, and vanish after a few months # Food and plants decay, and vanish after a few months
=begin =begin
deterioratefood deterioratefood

@ -1,4 +1,4 @@
-- Injects new reaction, item and building defs into the world. -- Inject new raw definitions into the world
--[[=begin --[[=begin
devel/inject-raws devel/inject-raws
@ -9,6 +9,8 @@ This script attempts to inject new raw objects into your
world. If the injected references do not match the actual world. If the injected references do not match the actual
edited raws, your save will refuse to load, or load but crash. edited raws, your save will refuse to load, or load but crash.
This script can handle reaction, item and building definitions.
The savegame contains a list of the relevant definition tokens in The savegame contains a list of the relevant definition tokens in
the right order, but all details are read from raws every time. the right order, but all details are read from raws every time.
This allows just adding stub definitions, and simply saving and This allows just adding stub definitions, and simply saving and

@ -1,4 +1,4 @@
-- Read the tiles from the screen and display info about them. -- Read from the screen and display info about the tiles
--[[=begin --[[=begin
devel/inspect-screen devel/inspect-screen

@ -1,4 +1,4 @@
-- List input items for the building currently being built. -- List input items for the building being built.
--[[=begin --[[=begin
devel/list-filters devel/list-filters

@ -1,4 +1,4 @@
-- Deletes ALL items not held by units, buildings or jobs. -- Delete ALL items not held by units, buildings or jobs
--[[=begin --[[=begin
devel/nuke-items devel/nuke-items

@ -1,4 +1,4 @@
-- Prepare the current save for use with devel/find-offsets. -- Prepare the current save for devel/find-offsets
--[[=begin --[[=begin
devel/prepare-save devel/prepare-save

@ -1,4 +1,4 @@
# list indices in world.item.other[] where current selected item appears # list selected item's indices in world.item.other[]
=begin =begin
devel/scanitemother devel/scanitemother

@ -1,4 +1,4 @@
# setup stuff to allow arena creature spawn after a mode change # Allow arena creature spawn after a mode change
df.world.arena_spawn.race.clear df.world.arena_spawn.race.clear
df.world.arena_spawn.caste.clear df.world.arena_spawn.caste.clear

@ -1,4 +1,4 @@
-- Generates an image using multiple octaves of perlin noise. -- Generates an image using perlin noise
--[[=begin --[[=begin
devel/test-perlin devel/test-perlin

@ -1,4 +1,4 @@
# designate an area for digging according to a plan in csv format # designate an area based on a '.csv' plan
=begin =begin
digfort digfort

@ -1,4 +1,4 @@
-- This script will elevate all the mental attributes of a unit -- Elevate all the mental attributes of a unit
-- by vjek -- by vjek
--[[=begin --[[=begin

@ -1,4 +1,4 @@
-- This script will elevate all the physical attributes of a unit -- Elevate all the physical attributes of a unit
-- by vjek -- by vjek
--[[=begin --[[=begin

@ -1,6 +1,5 @@
--makes it so that civs won't come with barrels full of blood, ichor, or goo -- Stop traders bringing blood, ichor, or goo
--author Urist Da Vinci --author Urist Da Vinci; edited by expwnent, scamtank
--edited by expwnent, scamtank
--[[=begin --[[=begin
fix/blood-del fix/blood-del

@ -1,4 +1,4 @@
# script to fix loyalty cascade, when you order your militia to kill friendly units # Cancels a 'loyalty cascade' when citizens are killed
=begin =begin
fix/loyaltycascade fix/loyaltycascade

@ -1,4 +1,4 @@
-- Communicates current population to mountainhomes to avoid cap overshooting. -- Tells mountainhomes your pop. to avoid overshoot
--[[=begin --[[=begin

@ -1,4 +1,4 @@
local utils = require('utils') -- Shows the sexual orientation of units
--[[=begin --[[=begin
gaydar gaydar
@ -8,6 +8,7 @@ the viability of livestock breeding programs. Use ``gaydar -help`` for informat
on available filters for orientation, citizenship, species, etc. on available filters for orientation, citizenship, species, etc.
=end]] =end]]
local utils = require('utils')
validArgs = utils.invert({ validArgs = utils.invert({
'all', 'all',

@ -1,4 +1,4 @@
# grow crops in farm plots. ex: growcrops helmet_plump 20 # Instantly grow crops in farm plots
=begin =begin
growcrops growcrops

@ -1,4 +1,4 @@
--Does something with items in adventure mode jobs
--[[=begin --[[=begin
gui/advfort_items gui/advfort_items

@ -1,5 +1,4 @@
-- Assign weapon racks to squads. Requires the weaponrack-unassign patch. -- Assign weapon racks to squads (needs binpatch)
--[[=begin --[[=begin
gui/assign-rack gui/assign-rack

@ -1,4 +1,4 @@
-- Rewrite individual choice weapons into specific types. -- Rewrite individual choice weapons to specific types
--[[=begin --[[=begin
gui/choose-weapons gui/choose-weapons

@ -1,4 +1,4 @@
-- Clone the current uniform template in the military screen. -- Clone a uniform template in the military screen
--[[=begin --[[=begin
gui/clone-uniform gui/clone-uniform

@ -1,4 +1,4 @@
-- Issue orders to companions in Adventure mode
--[[=begin --[[=begin
gui/companion-order gui/companion-order

@ -1,4 +1,4 @@
-- Interface powered (somewhat user friendly) unit editor. -- Interface powered, user friendly, unit editor
--[[=begin --[[=begin

@ -1,4 +1,4 @@
-- Show and manipulate the path used by Guide Cart orders. -- Show/change the path used by Guide Cart orders
--[[=begin --[[=begin
gui/guide-path gui/guide-path

@ -1,4 +1,4 @@
-- Creates a pit under the target leading straight to the Underworld. Type '?' for help. -- Creates a pit to the Underworld under the target
-- Based on script by IndigoFenix, @ https://gist.github.com/IndigoFenix/8776696 -- Based on script by IndigoFenix, @ https://gist.github.com/IndigoFenix/8776696
--[[=begin --[[=begin

@ -1,5 +1,4 @@
-- This script will modify a skill or the skills of a single unit -- Make a skill or skills of a unit Legendary +5
-- the skill will be increased to 20 (Legendary +5)
-- by vjek -- by vjek
--[[=begin --[[=begin

@ -1,4 +1,4 @@
-- Save a copy of a text screen in markdown (for reddit among others). Use 'markdown help' for more details. -- Save a text screen in markdown (eg for reddit)
-- This is a derivatiwe work based upon scripts/forum-dwarves.lua by Caldfir and expwnent -- This is a derivatiwe work based upon scripts/forum-dwarves.lua by Caldfir and expwnent
-- Adapted for markdown by Mchl https://github.com/Mchl -- Adapted for markdown by Mchl https://github.com/Mchl
--[[=begin --[[=begin

@ -1,4 +1,4 @@
-- Force a migrant wave (only works after hardcoded waves) -- Force a migrant wave (only after hardcoded waves)
--[[=begin --[[=begin
migrants-now migrants-now

@ -1,4 +1,4 @@
-- Shows populations of animals in the region, and allows tweaking them. -- Show or edit regional plant and animal populations
--[[=begin --[[=begin
region-pops region-pops

@ -1,6 +1,5 @@
# Show syndromes affecting units and the remaining and maximum duration # Show syndromes affecting units, including duration
# original author: drayath # original author: drayath, edited by expwnent
# edited by expwnent
=begin =begin
show-unit-syndromes show-unit-syndromes

@ -1,4 +1,4 @@
-- Wakes up the sleeping, breaks up parties and stops breaks. -- Wakes up the sleeping, ends breaks and parties
--[[=begin --[[=begin
siren siren

@ -1,4 +1,4 @@
# create an infinite magma/water source/drain at the cursor # create an infinite source/drain of magma/water
=begin =begin
source source

@ -1,4 +1,4 @@
# Make undead units weaken after one month, and vanish after six # Weaken and eventually destroy undead over time
=begin =begin
starvingdead starvingdead

@ -1,4 +1,4 @@
-- Pauses the game with a warning if a creature is starving, dehydrated, or very drowsy. -- Pause and warn if a unit is starving
-- By Meneth32, PeridexisErrant, Lethosor -- By Meneth32, PeridexisErrant, Lethosor
--@ module = true --@ module = true
--[[=begin --[[=begin