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?
-
- Posts: 76
- Joined: Wed Mar 04, 2020 12:11 pm
Possible to change NPC Alignment via Script?
Is there a function (maybe with NVSE?) that lets me change the alignment of NPC's via scripts ingame?
-
- Posts: 76
- Joined: Wed Mar 04, 2020 12:11 pm
Re: Possible to change NPC Alignment via Script?
I am talking about the numeric Karma value of a NPC when talking about alignment btw.
- jlf65
- Posts: 1535
- Joined: Wed Aug 10, 2016 9:10 pm
Re: Possible to change NPC Alignment via Script?
You could try SetActorValue. Example:
Code: Select all
actor.SetAV Karma 400
-
- Posts: 76
- Joined: Wed Mar 04, 2020 12:11 pm
Re: Possible to change NPC Alignment via Script?
This looks promising! Thanks for the reply!jlf65 wrote: ↑Mon May 17, 2021 11:03 amYou could try SetActorValue. Example:
Code: Select all
actor.SetAV Karma 400