Bay 12 Games Forum

Dwarf Fortress => DF Modding => Topic started by: Ombragon on April 30, 2016, 02:54:02 am

Title: Df hack item-trigger and add-syndrome questions
Post by: Ombragon on April 30, 2016, 02:54:02 am
I was trying to make a naturally toxic weapon and it seem that I don't have any idea on how to uses both item-trigger and add-syndrome. Want I wanted to do is to link a syndrome to a specific item, or a specific material (and to make it use the syndrome on each stikes). I tried to add this : "" to the Onload.init but it didn't seem to have any effects

modtools/item-trigger -itemType WEAPON_SUBTYPE onStrike [ modtools/add-syndrome -syndrome bleeding -target //DEFENDER_ID ]

What did I do wrong ? And how can I repair it ?
Title: Re: Df hack item-trigger and add-syndrome questions
Post by: Putnam on April 30, 2016, 03:00:08 am
Quote
WEAPON_SUBTYPE

Which weapon subtype?

Also, pretty sure it has to be -onStrike.
Title: Re: Df hack item-trigger and add-syndrome questions
Post by: Ombragon on April 30, 2016, 03:08:25 am
well if i want to "link" a syndrome to a short sword it should be ITEM_WEAPON_SWORD_SHORT it thought
Title: Re: Df hack item-trigger and add-syndrome questions
Post by: Putnam on April 30, 2016, 03:08:54 am
Yes.

You should post what you're actually trying to use instead of, like, some sort of weird simulacrum.
Title: Re: Df hack item-trigger and add-syndrome questions
Post by: Ombragon on April 30, 2016, 03:34:34 am
well I wrote this : modtools/item-trigger -itemType ITEM_WEAPON_GHRU_SPEAR -onStrike [ modtools/add-syndrome -syndrome ghru blight-resin -target //DEFENDER_ID ]

but it still didn't seem to apply the ghru's poison on hit, tested in the arena
Title: Re: Df hack item-trigger and add-syndrome questions
Post by: Putnam on April 30, 2016, 03:52:33 am
tested in the arena

item-trigger does not work in arena
Title: Re: Df hack item-trigger and add-syndrome questions
Post by: Ombragon on April 30, 2016, 03:56:58 am
okay now I understand ! Thanks