1
DF Modding / Re: Need Help With Creating A New Item
« on: March 26, 2023, 10:35:34 pm »If I may ask since I have never actually attempted to do this, how do you actually summon? I tried to research this, but it was very sparse from my search.
That, like many things in Dwarf Fortress modding, is also fairly roundabout. There's a couple methods, both of which share the same basic concept: You define a material which will give your Amazon a particular syndrome upon ingestion, and that syndrome gives the Amazon access to the interaction that she uses to summon more Amazons.
The first method, which I'm more familiar with, is this: You define a new material with a very low boiling point, such that it will immediately dissolve into a gas at room temperature. You also need to give this material a syndrome that will be applied to your Amazons when they inhale this gas, which will give them access to an interaction which allows them to summon creatures. You then need to make a reaction (effectively a crafting recipe) to create a boulder (any type of item probably works, but it's typically defined as an inorganic material) made of this material, and make that reaction accessible through a workshop. You assign an Amazon to create this boulder, the boulder turns into gas, the assigned Amazon will inhale the gas, and then she should hopefully summon the new member(s) of your fort. For lore, you could think of it like using a special blend of herbs which they mix into an incense and inhale the fumes. I unfortunately lost the files for the mod I made, otherwise I'd be able to give examples of how I did it.
The second method is similar, but the material is instead defined as a food which gives the syndrome upon being eaten. I'm given to understand this is more consistent than the vapor method (because sometimes they just don't breathe the vapor in), but is also slower and gives less control over who does the summoning, because you can't micromanage what or when your citizens eat. However, I was able to find some example raws in this thread, supplied by Eric Blank. I recommend looking through these no matter what method you go with, as it includes the most important part: The actual interaction used to summon the creature.
There is also a much, much simpler method, which would be to make Amazons innately capable of summoning other Amazons, no crafting or workshops necessary. This has its own problems, because populations are likely to balloon out of control if citizens are allowed to summon more citizens whenever they feel like it. You can limit the allowed frequency of a given interaction by using more syndromes, but as always, that's pretty complicated.
Hope this helps! I wish I could give more specific examples, but as I said I lost my existing files and it really is a lot to rewrite off the top of my head. Let me know if you have any more specific questions!
You helped me out immensely!
The summoning trick is very interesting and really blew my mind at first! Thankfully with your explanation and guiding me to that forum post it has really enabled me to learn a lot about Syndromes and all that! I appreciate it.
I actually went ahead and tried out the gender swap using my backup plan of having a "male" Amazonian that uses the female sprite and all their stats (essentially female).
Here is the code I used (for anyone who stumbles upon this thread):
Quote
[INORGANIC:CHALK]
[USE_MATERIAL_TEMPLATE:STONE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:chalk][DISPLAY_COLOR:7:7:1][TILE:176]
[REACTION_CLASS:FLUX]
[REACTION_CLASS:CALCIUM_CARBONATE]
[SEDIMENTARY]
[MATERIAL_VALUE:2]
[IS_STONE]
[MELTING_POINT:NONE]
[BOILING_POINT:10000]
[MAT_FIXED_TEMP:10001]
[SOLID_DENSITY:2710]
[STATE_COLOR:ALL_SOLID:BEIGE]
[SYNDROME]
[SYN_NAME:Change Gender]
[SYN_INGESTED]
[SYN_INJECTED]
[SYN_INHALED]
[SYN_CONTACT]
[SYN_NO_HOSPITAL]
[SYN_IDENTIFIER] - Changed Gender
[CE_BODY_TRANSFORMATION:PROB:100:START:0]
[CE:CREATURE:AMAZONIAN:MALE]
[CE_BODY_TRANSFORMATION:PROB:100:START:0]
[CE:CREATURE:AMAZONIAN:MALE]
[CE_BODY_TRANSFORMATION:PROB:100:START:0]
[CE:CREATURE:AMAZONIAN:FEMALE]
[CE_BODY_TRANSFORMATION:PROB:100:START:0]
[CE:CREATURE:AMAZONIAN:FEMALE]
Obviously, I won't keep chalk this way it was just a quick way to test Haha.
Like you said before the trick is getting them to conceive a child. I will probably use DFhack, seeing as getting quick test results will probably be too much of a time investment. So, I will mess around with this tonight in my spare time and report later on what I find.
I am still playing around with summoning because I REALLY like this idea. Also, it's just interesting to learn tbh. I think this has a lot of potential to (within reason) not only play with the female only challenge, but also would be a good tool for subduing other (enemy) races. Sort of like a mobile Amazonian strike force lol. Maybe a tad overpowered so I'm thinking of making a really rare material and adding it in. Something to like very low levels in the earth, as to not be abused too hard!
I'm really only doing this for fun and probably won't release it unless I feel it's really polished. Especially since the sprites I use are actually from another's mods. I do draw my own art I just haven't had the time to do so yet. So if I do release this I will 100% use my own custom art haha. Or if I'm too lazy will just ask the original guy if it's cool. We will see.
Kind Regards
-Naru