I made a usefull script that I hope you all enjoy

name: Npc attacks another npc
what it does: this is used in the actions taken part of a conversation. In my mod I have a dragon chasing a boy. the boy asks for help. the dragon speaks to the player and gives the PC a choice of saving the boy or him/her self. Choose to save the boy and the dragon attacks the PC. Choose to save yourself and the dragon kills the boy. (that's where I used this script)




//::///////////////////////////////////////////////
//:: FileName attack npc
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Incarnate Telamon
//:: Created On: 6/30/02 2:54:50 AM
//:://////////////////////////////////////////////
#include "nw_i0_generic"
void main()
{
// Set the faction to hate a npc, then attack the npc
AdjustReputation(GetObjectByTag("NW_MALEKID01"), OBJECT_SELF, -100);
DetermineCombatRound(GetObjectByTag("NW_MALEKID01"));
}





note: change NW_MALEKID01 to the tag of your npc.


I didnt write this script but found it useful. Credit goes to Bioware on this one

name: henchman leaves party
what it does: removes a henchman from the party. used in the on enter event of a generic trigger. I used this so the henchman will leave the party and betray the PC.




void main()
{
object oPavel = GetNearestObjectByTag("Cyric");
object oPC= GetEnteringObject();
if (GetIsObjectValid(oPavel))
{
RemoveHenchman(oPC,oPavel);
AssignCommand(oPavel,ClearAllActions());
}
}





note: change Cyric to the tag of your henchman npc


"Dreamer easy in the chair that really fits you." YES