I’m trying to make that an enemy attack one of his/her allies for 1 round, i thought at first that with the EffectCharmed this could be possible but the charmed target stand still and can’t take orders even with AssignCommand function. The charmed creature doesn’t even defend or protect its master as it should. EffectInsane can achieve this but i need it to attack only his/her allies. I was thinking in modifying the insane heartbeat script.
Edit: I modified the insane heartbeat script and replaced the ActionAttack with this and does what i want:
object oTarget;
if(GetHasSpellEffect(FEAT_EFFECT_ANDRAS_SOW_DISCORD,OBJECT_SELF))//ATTACK ONLY YOUR ALLIES
oTarget = GetNearestCreature(CREATURE_TYPE_PERCEPTION, PERCEPTION_SEEN, OBJECT_SELF, 1
,CREATURE_TYPE_IS_ALIVE, TRUE
,CREATURE_TYPE_REPUTATION,REPUTATION_TYPE_ENEMY);
else//ATTACK ANYONE
oTarget = GetNearestCreature(CREATURE_TYPE_PERCEPTION, PERCEPTION_SEEN, OBJECT_SELF, 1, CREATURE_TYPE_IS_ALIVE, TRUE);
ActionAttack(oTarget);
The only problem with this is that you don’t get XP if the hostile creature gets the kill since isn’t in your party, probably that’s why charmed creatures don’t attack. The other option that also is viable is Dominate or Cutscene Dominate to avoid that.