Question: I'm attempting to have a creature use an interaction on itself to buff itself temporarily (increased speed, as it were). I'm doing this by making it give itself a limited-duration syndrome that affects speed positively. So:
1) Is there any way to make it only use the interaction when it's near an enemy? (I suspect not, currently it uses it just all the time, that's okay),
2) The interaction, when used in arena "fortress" testing mode, seems to be affecting all creatures on the map despite it being set to target SELF_ONLY and max. one target. What's causing this, and how can I stop it? (It's either affecting all creatures or a random assortment including itself, neither of which is good, but I'm not sure which thanks to some confusing messages). The interaction itself is:
[INTERACTION:BOOSTDEF2]
[I_SOURCE:CREATURE_ACTION]
[I_TARGET:A:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
[IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
[IT_MANUAL_INPUT:enemy]
[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[SYNDROME]
[CE_PHYS_ATT_CHANGE:TOUGHNESS:200:0:PROB:100:START:0:PEAK:0:END:90]
aaand the usability bit on the creature is:
[CAN_DO_INTERACTION:BOOSTDEF2]
[CDI:TARGET:C:SELF_ONLY]
[CDI:WAIT_PERIOD:350]
[CDI:ADV_NAME:defense boost]
[CDI:VERB:toughen up:toughens up:NA]
[CDI:TARGET_VERB:become tougher:becomes tougher]
Note that I started modding, like, yesterday, I've been using every resource I can find but I'm guessing there's just something I've missed to make this work properly.