How do you get interactions to work through walls? I'm trying to give goblins an interaction that lets them inflict a stress-inducing syndrome on exclusively dwarves, preferably as a hostile action, but it doesn't matter much since goblin visitors are quite rare and the syndrome should only be dangerous in large amounts.
Currently it is fully functional except for the fact that it does not function through walls, which is an obvious problem if I want it as an anti-seal-yourself-off-with-walls measure.
[INTERACTION:DEMORALIZE]
[I_SOURCE:CREATURE_ACTION]
[FREE_ACTION]
[I_TARGET:A:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
[IT_AFFECTED_CREATURE:DWARF:ALL]
[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[SYNDROME]
[SYN_NAME:being under siege]
[CE_FEEL_EMOTION:EMOTION:UNEASINESS:SEV:100:PROB:100:START:0:END:500]
[TRANCES]
[NOPAIN]
[EXTRAVISION]
[CAN_DO_INTERACTION:DEMORALIZE]
[CDI:ADV_NAME:Demoralize]
[CDI:TARGET_RANGE:A:1000]
--CDI:VERB:demoralize:demoralizes:NA] for testing purposes only
[CDI:MAX_TARGET_NUMBER:A:1]
[CDI:WAIT_PERIOD:3600]
I've tried giving goblins extravision (though I don't think that should change anything), and as an extra challenge I randomly threw nopain and trances in there. Neither file has any other changes than the ones in the spoiler text, not that it should make anything different.
If I can get it to work, I'll probably also give it to undead, but that should be trivial. In addition, I may add the IT_CANNOT_TARGET_IF_ALREADY_AFFECTED and perhaps ERRATIC_BEHAVIOR tokens. However, right now, I just want to know how to get the blasted thing to work through walls.
One more question, though: does the END time on my stress-inducing syndrome have any effect, since the giving of stress is a one-off thing? Can I use it as a timer for how often a dwarf can be targeted when used with IT_CANNOT_TARGET_IF_ALREADY_AFFECTED, so that an entire siege doesn't use their first demoralize on a singular dwarf?
EDIT: I was able to get it to work by giving the USAGE_HINT of GREETING, though I'm not sure why that works.