Bay 12 Games Forum

Dwarf Fortress => DF Modding => Topic started by: joostheger on August 29, 2023, 08:42:45 am

Title: How can I let creature A apply a syndrome to creature B?
Post by: joostheger on August 29, 2023, 08:42:45 am
I want a spawned vermin 'A' to apply a syndrome to my CustomCreature 'B'.

creature A:
- VERMIN_SOIL

creaure B:
- ROOT_AROUND

Its been ages and I'am struggling with this. first I tried the gobbling/ingestion mechanic (as you might have seen). Then I tried as Eric suggested using the VERBIN_BITE mechanic. This works, but also my dwarfs get bitten all the time.

So ive tried:
* gobbling / eating - wont apply
* Continues secretions with gas - no gas is seen, probably because the despawn within 40 ticks. 
* can_do_interactions - they dont interact. I dont get them to do it spontaniously as a greeting, defence or fleeing interaction. Why: I dont know. they quickly despawn.
* verbin_bite: does work. But i get constantly announcements.

Please help
Title: Re: How can I let creature A apply a syndrome to creature B?
Post by: aradar on August 29, 2023, 08:56:36 am
Did you add after vermin bite [die_when_vermin_bite] ?
Title: Re: How can I let creature A apply a syndrome to creature B?
Post by: joostheger on August 29, 2023, 09:29:17 am
yes I did. but I also got the announcement
Title: Re: How can I let creature A apply a syndrome to creature B?
Post by: joostheger on August 29, 2023, 09:41:48 am
I also dont get vermin to directly attack any creatures. I even made them [crazed] and [opposed_to_live], but they didnt attack. Otherwise I could have used the attack-interaction or something. I also tried Fleequick and benign. no effect. I think Vermin wont ever get hostile.

The thing I could try, is to see if cats get the syndrome by hunting and eating vermin. to be seen. Edit: nope.
Title: Re: How can I let creature A apply a syndrome to creature B?
Post by: joostheger on August 29, 2023, 10:27:44 am
Is it even possible to target vermin in an interaction?
I made a syndrome fluid but the vermin's weren't affected at all.

What I was trying to do, were the first steps for transforming the vermin into a creature, capable of combat. havent worked it out yet
Title: Re: How can I let creature A apply a syndrome to creature B?
Post by: joostheger on August 29, 2023, 10:35:42 am
Sight.. probably a dead end...
http://www.bay12forums.com/smf/index.php?topic=155531.msg6738156#msg6738156
Title: Re: How can I let creature A apply a syndrome to creature B?
Post by: aradar on August 29, 2023, 10:59:17 am
Ouch that seals it then 😭

Worse case you could make a (*-sudo vermin-*) from an actual creature and go from there ? Not sure if that would work for your project or not though

I have a small creature that I summon with a reaction it's crazed when it appears and if certain condition are met it performs an interaction that applies syndromes and does other things
I have it setup as a [night_creature_nightmare] so it leaves no corpses when it dies


this is just a copy of a dwarf with some flaver details changed

Spoiler (click to show/hide)

this is the interaction, this can be done in lot of different ways
Spoiler (click to show/hide)
if you wonder why there's a creature transform in there its to remove all body damage from resurrected dead dwarfs so there not mutilated when they are resurrected
Title: Re: How can I let creature A apply a syndrome to creature B?
Post by: joostheger on August 29, 2023, 11:18:21 am
Thanks for the suggestions, but iam afraid these also wont work. Vermin apearently is something totally different from other creatures.

Guess i have to kearn dfhack then. Lets go
Title: Re: How can I let creature A apply a syndrome to creature B?
Post by: aradar on August 29, 2023, 11:24:18 am
Thanks for the suggestions, but iam afraid these also wont work. Vermin apearently is something totally different from other creatures.

Guess i have to kearn dfhack then. Lets go

yea it seems that with this game you can do just about anything, except some times it just doesn't happen the way you want it to exactly happen :(
im sure you can achieve the effect you want, it just wont happen in the exact way you want it to happen

dfhack is prolly the best option if your just wanting to play locally, the idea mod wise not very ideal :(
Title: Re: How can I let creature A apply a syndrome to creature B?
Post by: Eric Blank on August 29, 2023, 02:29:35 pm
Yeah, vermin are effectively a glorified item type with only a few special considerations. Biting, getting gobbled, being caught in traps or by fishermen, being caught by cats and dying in spider webs and eating food left out of barrels/unguarded by cats are really all they do to interact directly with the world.

Dwarves will absolutely be bitten by the critter, but did you write the syndrome so they're an immune creature or class? You could remove the dying after bite part so they last until they encounter a vermin gobbler or cat