PDA

View Full Version : NPC Alignment


shamelessposer
09-12-2005, 01:26 PM
Is there a scripting function that allows you to change an NPC's alignment? The only thing I can think of is maybe a "Change NPC to PC/Assign LS/DS points, change back" function, and I'm not too sure what happens to the PC when you do that.

Is there anyone here with enough script-fu to tell me if it's possible in either KOTOR or KOTOR2?

stoffe
09-12-2005, 02:21 PM
Is there a scripting function that allows you to change an NPC's alignment?

You can use the SetGoodEvilValue() function for this, it takes a creature to modify as a parameter, which works for both party members and other creatures/NPCs. The valid range of the value is 0 - 100, where 0 is full Darkside Mastery, 50 is Neutral and 100 is full Lightside mastery.

However, since your party members' alignment is tied to yours, especially if you play as a Jedi Master or Sith Lord, it's not easy to give them a fixed alignment that will be noticable.

It seems you'll only see their non-Exile dependent alignment when the Exile isn't in the group (G0T0's yacht, Dxun Tomb...).

shamelessposer
09-12-2005, 02:28 PM
However, since your party members' alignment is tied to yours, especially if you play as a Jedi Master or Sith Lord, it's not easy to give them a fixed alignment that will be noticable.

Is this not a problem in the first KOTOR, though?

stoffe
09-12-2005, 03:16 PM
Is this not a problem in the first KOTOR, though?

No idea since I haven't done much modding for KotOR1. Don't know if that scripting function even exists in KotOR1 or if its a new TSL addition.

If the SetGoodEvilValue() function doesn't exist in KotOR1 you could try using the AdjustAlignment() function instead. Since it exists in NWN it should be in both KotOR games as well.

Det. Bart Lasiter
09-12-2005, 06:19 PM
Is this not a problem in the first KOTOR, though?

Since your party members' alignments are not subject to yours, no this is not a problem.

cry_of_paine
09-12-2005, 11:43 PM
SetGoodEvilValue does exist in Kotor 1.