Jump to content

Home

NPC Alignment


shamelessposer

Recommended Posts

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?

Link to comment
Share on other sites

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...).

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...