The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.gg/taleoftwowastelands

Possible to change NPC Alignment via Script?

General modding guides and authoring tutorials.
Post Reply
Vlan
Posts: 76
Joined: Wed Mar 04, 2020 12:11 pm

Possible to change NPC Alignment via Script?

Post by Vlan » Sun May 16, 2021 8:35 am

Is there a function (maybe with NVSE?) that lets me change the alignment of NPC's via scripts ingame?

Vlan
Posts: 76
Joined: Wed Mar 04, 2020 12:11 pm

Re: Possible to change NPC Alignment via Script?

Post by Vlan » Mon May 17, 2021 8:55 am

I am talking about the numeric Karma value of a NPC when talking about alignment btw.

User avatar
jlf65
Posts: 1535
Joined: Wed Aug 10, 2016 9:10 pm

Re: Possible to change NPC Alignment via Script?

Post by jlf65 » Mon May 17, 2021 11:03 am

You could try SetActorValue. Example:

Code: Select all

actor.SetAV Karma 400

Vlan
Posts: 76
Joined: Wed Mar 04, 2020 12:11 pm

Re: Possible to change NPC Alignment via Script?

Post by Vlan » Mon May 17, 2021 6:42 pm

jlf65 wrote:
Mon May 17, 2021 11:03 am
You could try SetActorValue. Example:

Code: Select all

actor.SetAV Karma 400
This looks promising! Thanks for the reply!

Post Reply