Is there any list of flags that can be set when making plugins? I'm interested in being able to put cleaning jobs on tiles.
Also is there anyway to stop large unit lists from reducing migration wave size? This is beginning to affect the Moltenchannels succession game - it basically means the fortress won't be getting any massive migrant wave !!FUN!! any longer.
scripts/fix/dead-units.lua
Removes "uninteresting" dead units from the active units. I hear that migrants stop coming when this list gets over 3000 or something like that. Some have said that it is more aggressive than they would like in what it considers uninteresting, but I think this is what you are looking for.
scripts/fix/population-cap.lua
-- Communicates current population to mountainhomes to avoid cap overshooting.
-- The reason for population cap problems is that the population value it
-- is compared against comes from the last dwarven caravan that successfully
-- left for mountainhomes. This script instantly updates it.
-- Note that a migration wave can still overshoot the limit by 1-2 dwarves because
-- of the last migrant bringing his family. Likewise, king arrival ignores cap.
As for designating cleaning jobs, that is something I have been trying to do the past couple of days too. I have created cleaning jobs which nobody will be assigned to, and created "stagnant water" items with the hope that with no_auto_clean == false would auto make a clean job but doesn't. I have also tried creating the ice boulder which when melted becomes stagnant water and hence the auto clean job, but the created boulder when melted did not do so. My next attempt will involve associating the created clean jobs with a building to see if that will get them to assign somebody.