Hi everyone,
Just getting my feet wet with modding, and I'd like to see if a few things are possible before I go too far down a potentially blind alley.
- When a creature has [MALE] and [FEMALE] castes, any sterile castes show up as female. This seems to be based on insects with queens and drones, but is there some way to have a sterile caste referred to as "he" or preferably "it"? Putting [UNGENDERED] in the sterile caste generates an error, so that's not the way to do it.
- Is there a way to hook a check/reaction/syndrome/whatever into a standard action like mining? In vanilla, there is a 25% chance that mining a rock leaves a stone, 0% for soil and 100% for gems. Is there a way to slip in a % chance of something else happening? One idea is hidden gems (for example, 0.5% of granite spaces yield a specific rough gem) and the other is living rock (0.05% of granite spaces yield a granite fiend, 0.05% of marble spaces yield a marble fiend, etc.)
- Ideally I'd like to be able to remove any loopholes with the above, such as carving up-staris then removing the stairs to avoid the possibility of creature spawning.
- Can a workshop consume the person constructing it without insta-killing anyone else who ever tries to use it? ("Urist McSoapmaker, welcome to the fortress! Step right over here...")
- If I mod the wagon to be made out of stone, will treehuggers use them?
Thanks everyone.
1. There is no [UNGENDERED] tag however with the use of interactions you can have a caste make themselves sterile even if they are MALE or FEMALE, the how do I made already, and can share it since it's so simple:
[INTERACTION:NO_BABIES]
[I_SOURCE:CREATURE_ACTION]
[I_TARGET:A:CREATURE]
[IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
[IT_LOCATION:CONTEXT_CREATURE]
[IT_MANUAL_INPUT:creature]
[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[SYNDROME]
[CE_ADD_TAG:STERILE:START:0]
[CAN_DO_INTERACTION:NO_BABIES]
[CDI:ADV_NAME:Sterile]
[CDI:TARGET:A:SELF_ONLY]
[CDI:WAIT_PERIOD:16800]
[CDI:FREE_ACTION]
2.Can't add anything such as hooks saddly, all you can do is make custom reactions with percent chances, or special VEINS of imposter minerals/layers (CLAY, CLAY_FAKE) CLAY_FAKE might on mining drops a boiling stone that when inhaled causing syndromes, or look at DFHack they might have made something for this already. (I don't follow it much, I don't like making mods that rely on third party utilities)
3. ^^^
4.Not construction, but a reaction that makes a boiling stone (DFHack has an autosyndrome function that might be your thing) that when on repeat makes boiling poison stones.
5. Treehuggers will use wooden wagons because wagons are the only multi-tile creature in game atm, and creatures even if made of wood don't count as wood (by-products will so don't sell the butchered bits to them) if you want the tree huggers to use wagons enable them in their ENTITY.
EDIT:
Also for number 1. as I reread it over again:
MALE gives a "he" descriptor
FEMALE gives a "she" descriptor
having neither of the above gives an "it" desciptor
Thanks for the help, Hugo (who looks an awful lot like Murphy...). I would like to avoid reliance on DFHack, so I like that you didn't take the easy way out.
Aside from the hidden gems, I was trying to get the effect of "once in a while, those rocks you mine out turn out to be rock creatures." I thought about trying to modify the evil biome re-animation reaction, but only if I can make it a rare-enough occurrence that the game is still playable. One would need to cut the stones into blocks to make sure they stay down (analogous to butchering corpses in an evil biome).
I could definitely see your hidden veins idea working as well, or more likely hidden small clusters. In that case, the rock creature would only need to be killed once and drop a rock as its "corpse". I'm sure the miners would prefer your solution.
My first attempt to put in a neuter cast was to experiment with a "golem" cast of Dwarves that simply lacked a [MALE] or [FEMALE] tag. They seemed to be female in DF descriptions and in Dwarf Therapist, which is consistent with the worker-ant idea but not the effect I was trying to get. Your interaction solution seems like the best fit, and it is much appreciated
The "pour your soul into the workshop" was just a nice-to-have, no biggie if it's impossible. Urist McSoapmaker will just have to join the militia to make himself useful.
I read somewhere on the wiki that civs averse to KILL_PLANTS would not use wagons. I should probably have tested that myself first.