PDA

View Full Version : simple script


DarthStoney
06-13-2007, 07:39 AM
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?

swfan28
06-13-2007, 08:10 AM
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.

DarthStoney
06-13-2007, 08:33 AM
That should do it. Thanks