Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

simple script

Page: 1 of 1
 DarthStoney
06-13-2007, 7:39 AM
#1
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, 8:10 AM
#2
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, 8:33 AM
#3
That should do it. Thanks
Page: 1 of 1