I've been searching for a while and can't seem to find anything about this, so I'd like to ask for the sake of other prospective modders in the future: What causes entities to be hostile with each other?
As in, causing them to have the red dashes (
----) in the Neighbors tab of the embark menu, causing them to send sieges and things even if they're not at war, like goblins in vanilla DF. I've found all kinds of conflicting answers all over the place. A few of the supposed causes seemed to be:
- [BABYSNATCHER] and [ITEM_THIEF] entity tokens
- Significantly different ethics
- [CAN_SPEAK], [CAN_LEARN], and [INTELLIGENT] creature tokens
From my limited experience, significantly different ethics only causes the entities to go to war more (
War),
not actually make them hostile all the time (
----). From vanilla evidence, it would appear that [BABYSNATCHER] and [ITEM_THIEF] could cause hostility, since goblins have these tags, but since there aren't many other races to look at in vanilla, so I don't have much to base that theory from; and kobolds have [ITEM_THIEF] but are hostile in a totally different way, perhaps, or perhaps not, due to their [SKULKING] tag.
I've checked the wiki, but even there there doesn't seem to be any solid research or answers about
exactly what these different tokens affect as far as hostility.
EDIT: It would appear that goblins don't actually have [ITEM_THIEF], oops; and I'm thinking it would be safe to rule out any of the creature tags being a likely cause of hostility; I'd expect it to be more of an entity issue.
And, I'm pretty sure that in the Kobold Camp thread they talk of goblin sieges, which would go with what I've found so far about entities with [ITEM_THIEF] being friendly to those who also have [ITEM_THIEF], and not to others, and same for [BABYSNATCHER]; meaning that kobolds and goblins are hostile with each other because neither has both [ITEM_THIEF]
and [BABYSNATCHER]; this would be indicative of, say, if you wanted to make an entity hostile, you would want to give your hostile entity one of these tags, depending on who you want them to be friendly with, and which kind of thieves you want them to send. This isn't certain, I don't have solid evidence, but looking at the raws, this seems to be one of the main differences between hostile and friendly entity relationships.
Additional hard evidence, logical reasoning and experience would be appreciated.