lfnetwork.com mark read register faq members calendar

Thread: Multiple Faction Change Script [Help K1]
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 04-03-2010, 02:34 PM   #1
Holty1-5
Junior Member
 
Holty1-5's Avatar
 
Join Date: Feb 2010
Location: Reading UK
Posts: 254
Current Game: Final Fantasy 13
Helpful! 
Multiple Faction Change Script [Help K1]

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

Holty1-5 is offline   you may: quote & reply,
Old 04-03-2010, 02:44 PM   #2
Hope Estheim
Rookie
 
Hope Estheim's Avatar
 
Join Date: Mar 2010
Location: US of A
Posts: 71
Current Game: WoW and ME2
Quote:
Originally Posted by Holty1-5 View Post
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
Here's one type of code Just change the "___" to whatever your peoples tags are. (that's a script from my own mod lol)

Code:
void main() 
{ 
object oNPC=GetObjectByTag("veshanii"); 
ChangeToStandardFaction(oNPC, 1);  
object oThug1 = GetObjectByTag("veshaniiguard"); 
object oThug2 = GetObjectByTag("veshaniiguard2"); 
ChangeToStandardFaction(oThug1, 1); 
ChangeToStandardFaction(oThug2, 1);
}
Hope Estheim is offline   you may: quote & reply,
Old 04-03-2010, 02:48 PM   #3
Holty1-5
Junior Member
 
Holty1-5's Avatar
 
Join Date: Feb 2010
Location: Reading UK
Posts: 254
Current Game: Final Fantasy 13
Helpful! 
Thank You. il use your script as a Base for my own one

Holty1-5 is offline   you may: quote & reply,
Old 04-03-2010, 02:50 PM   #4
Hope Estheim
Rookie
 
Hope Estheim's Avatar
 
Join Date: Mar 2010
Location: US of A
Posts: 71
Current Game: WoW and ME2
Hahaha... okay and no problem ^^

(btw it was a Kotor Tool generated script xD so it's not my script per say :P )
Hope Estheim is offline   you may: quote & reply,
Old 04-03-2010, 02:54 PM   #5
Holty1-5
Junior Member
 
Holty1-5's Avatar
 
Join Date: Feb 2010
Location: Reading UK
Posts: 254
Current Game: Final Fantasy 13
Helpful! 
Quote:
(btw it was a Kotor Tool generated script xD so it's not my script per say :P )
Lol But thanks anyway

Holty1-5 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Multiple Faction Change Script [Help K1]

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:00 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.