Hi everyone. I'm trying to mod in a interaction that summons both a temporary creature and stealths the user:
[CAN_DO_INTERACTION:CLOAK]
[I_SOURCE:CREATURE_ACTION]
[I_TARGET:A:LOCATION]
[IT_LOCATION:CONTEXT_LOCATION]
[I_TARGET:B:LOCATION]
[IT_LOCATION:RANDOM_NEARBY_LOCATION:A:3]
[I_EFFECT:SUMMON_UNIT]
[IE_TARGET:B]
[CREATURE:DOG:ANY]
[IE_TIME_RANGE:0:200]
[IE_IMMEDIATE]
[IE_MAKE_PET_IF_POSSIBLE]
[I_EFFECT:HIDE]
[IE_TARGET:C]
[IE_IMMEDIATE]
[INTERACTION:CLOAK]
[CDI:ADV_NAME:Cloak]
[CDI:TARGET:A:SELF_ONLY]
[CDI:TARGET:C:SELF_ONLY]
[CDI:USAGE_HINT:DEFEND]
[CDI:USAGE_HINT:ATTACK]
[CDI:USAGE_HINT:FLEEING]
[CDI:VERB:cloak:cloaks:NA]
[CDI:FREE_ACTION]
[CDI:WAIT_PERIOD:200]
I've tested it in both adventure mode and the testing arena, but I normally play fort mode so I don't know if it's working properly. The dog appears and then disappears but I don't know if the stealth is working properly. Have I done this right?
I gave this to dwarves to test, and they would only use it when I took control in the arena. Can I make them use it in "fort" mode?
And is there a way to make sure the dog doesn't leave a cloud of smoke when it poofs?