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.

Multiple Faction Change Script [Help K1]

Page: 1 of 1
 Holty1-5
04-03-2010, 2:34 PM
#1
Hey Guys im Making a Mod for K1 and im in need of a Bit of Scripting Help....again

I need a Script that Changes a Couple of NPC's faction to Hostile

For a Example lets say i have 3 NPC'S
Tags: 1,2 and 3
what would be the script

Or if they all have the same Tag what is the script???

Help Plz

Thanks ;P
 Hope Estheim
04-03-2010, 2:44 PM
#2
Hey Guys im Making a Mod for K1 and im in need of a Bit of Scripting Help....again

I need a Script that Changes a Couple of NPC's faction to Hostile

For a Example lets say i have 3 NPC'S
Tags: 1,2 and 3
what would be the script

Or if they all have the same Tag what is the script???

Help Plz

Thanks ;P

Here's one type of code ;) Just change the "___" to whatever your peoples tags are. (that's a script from my own mod lol)

void main()
{
object oNPC=GetObjectByTag("veshanii");
ChangeToStandardFaction(oNPC, 1);
object oThug1 = GetObjectByTag("veshaniiguard");
object oThug2 = GetObjectByTag("veshaniiguard2");
ChangeToStandardFaction(oThug1, 1);
ChangeToStandardFaction(oThug2, 1);
}
 Holty1-5
04-03-2010, 2:48 PM
#3
Thank You. il use your script as a Base for my own one ;P
 Hope Estheim
04-03-2010, 2:50 PM
#4
Hahaha... okay and no problem ^^

(btw it was a Kotor Tool generated script xD so it's not my script per say :P )
 Holty1-5
04-03-2010, 2:54 PM
#5
(btw it was a Kotor Tool generated script xD so it's not my script per say :P )

Lol But thanks anyway ;P
Page: 1 of 1