DFHack - Dwarf Fortress Modding Engine

DFHack - Dwarf Fortress Modding Engine

Is there a command to force a (vampire) curse?
Hi! I often stream play DF with heavy storytelling with the audience, and it'd be great if there was a tool for making an entity becoming a vampire. Is it possible in DFHack?
< >
Showing 1-7 of 7 comments
Fel Oct 13, 2023 @ 3:04pm 
You would probably want to give a look at gui/gm-editor or gui/gm-unit.
Alternatively you can probably use spawnunit to spawn a vampire unit.

See the ingame documentation or the online one for more details:
https://docs.dfhack.org/en/stable/docs/Tools.html
myk002  [developer] Oct 13, 2023 @ 11:40pm 
Since vampire curses are generated anew with each world, the process for making a unit a vampire is not as straightforward as it could be. It helps a great deal if you already have a vampire accessible that you can examine. Then you can:
1. use gui/unit-syndromes to examine the vampire and take note of the syndrome ID that unit is afflicted with
2. use modtools/add-syndrome to apply that syndrome to the unit of your choice

If you don't have a vampire unit yet, maybe save your game, run migrants-now until you get a migrant vampire (use cursecheck to identify them), examine them with gui/unit-syndromes to get the syndrome ID, then load back your original save and modify your other unit.

docs are here: https://docs.dfhack.org/en/stable/docs/tools/modtools/add-syndrome.html#modtools-add-syndrome
Originally posted by myk002:
Since vampire curses are generated anew with each world, the process for making a unit a vampire is not as straightforward as it could be. It helps a great deal if you already have a vampire accessible that you can examine. Then you can:
1. use gui/unit-syndromes to examine the vampire and take note of the syndrome ID that unit is afflicted with
2. use modtools/add-syndrome to apply that syndrome to the unit of your choice

If you don't have a vampire unit yet, maybe save your game, run migrants-now until you get a migrant vampire (use cursecheck to identify them), examine them with gui/unit-syndromes to get the syndrome ID, then load back your original save and modify your other unit.

docs are here: https://docs.dfhack.org/en/stable/docs/tools/modtools/add-syndrome.html#modtools-add-syndrome

That advice is GOLD, thank you so much! I play DF for 8 years, I'm quite familiar with DFHack's doc database, though I didn't connect the dots as well as you did there, thanks again!
流浪者 Aug 26, 2024 @ 11:02am 
Originally posted by myk002:
Since vampire curses are generated anew with each world, the process for making a unit a vampire is not as straightforward as it could be. It helps a great deal if you already have a vampire accessible that you can examine. Then you can:
1. use gui/unit-syndromes to examine the vampire and take note of the syndrome ID that unit is afflicted with
2. use modtools/add-syndrome to apply that syndrome to the unit of your choice

If you don't have a vampire unit yet, maybe save your game, run migrants-now until you get a migrant vampire (use cursecheck to identify them), examine them with gui/unit-syndromes to get the syndrome ID, then load back your original save and modify your other unit.

docs are here: https://docs.dfhack.org/en/stable/docs/tools/modtools/add-syndrome.html#modtools-add-syndrome
Hey. I'm trying to make a full vampire fortress and I'm trying to remove `sterile` tag from `gm-unit` `curse`. It does change but after a while it resets back. Is there a way to make it permanent so vampires can procreate too?
Is there a way to change tags on units so they stay forever?
Or is there a way to edit syndrome to remove that sterile tag from it if the first one is not an option?
Last edited by 流浪者; Aug 26, 2024 @ 11:10am
myk002  [developer] Aug 26, 2024 @ 6:58pm 
The flags on units are periodically refreshed from the parent caste and any syndromes the unit may have, as you've seen. I suspect the answer is to edit the syndrome itself, but I don't know for certain that that will persist across save-reload cycles.
流浪者 Aug 26, 2024 @ 9:31pm 
Originally posted by myk002:
The flags on units are periodically refreshed from the parent caste and any syndromes the unit may have, as you've seen. I suspect the answer is to edit the syndrome itself, but I don't know for certain that that will persist across save-reload cycles.
Oooo thanks. I'll try to check syndromes out then.
Also is it okay to @ you on discord about these kinds of questions? I've been looking through gm-editor a lot lately, and its just pretty much me and rumrusher have been trying to figure out how to make the stuff I want to work.
I saw you're very active on reddit and on here, but barely see you in discord, so idk if it's okay to @ you there.
At least in Kitfox discord that is. The only DF discord I'm in.
Last edited by 流浪者; Aug 26, 2024 @ 9:32pm
myk002  [developer] Aug 26, 2024 @ 9:54pm 
Yes, @mentioning me on Discord is fine -- in fact, that's the best way to get my attention on the Kitfox discord. I'm more active on the DFHack discord, of course, but I check the Kitfox discord semi-regularly. I normally just do a search for "DFHack" and reply to any questions I see.
< >
Showing 1-7 of 7 comments
Per page: 1530 50