Jump to content

Home

simple script


DarthStoney

Recommended Posts

Originally Posted by DSTONEY642000

I was wondering what would a simple script be to turn the person you are

talking to and the ones around that him hostile at the end of a conv?

This should do it:

#include "k_inc_generic"

void main() {
   object oNPC1 = GetObjectByTag("NPC1tag");
   object oNPC2 = GetObjectByTag("NPC2tag");
   object oPlayer = GetFirstPC();

   ChangeToStandardFaction(oNPC1, STANDARD_FACTION_HOSTILE_1);
   ChangeToStandardFaction(oNPC2, STANDARD_FACTION_HOSTILE_1);

   AssignCommand(oNPC1, GN_DetermineCombatRound(oPlayer));
   AssignCommand(oNPC2, GN_DetermineCombatRound(oPlayer));
}

Just repeat the functions for each NPC you want to turn hostile.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...