EvenLess wrote: ↑Fri Aug 11, 2023 4:51 am
I noticed a "boost" function called
FactionOverride
, which made me wonder if it would be possible to use that to make friends out of enemies?
You can, I did it in the form of an aura (in a certain circle around you, NPCs become "friends", this function is removed when moving away from it).
All in all, I found this to be a no-brainer.
You can, of course, make a spell to hang it permanently, but it seemed pointless to me (I used it to steal, because children always see you even through invisibility, when this function is turned on, no one reacts to theft, but when turned off, they "remember" that you are an "enemy").
I tried to make a game implementation (that is, not like a script from a zanzer) through AddAttitudeTowardsPlayer (changes the attitude of the NPC towards the player), but alas, I can’t find the substituted values.
AddAttitudeTowardsPlayer(Character, Player, Delta)
I tried to replace "Character" and "Player" - context.Source, context.Target, TARGET , SELF ..
Added it via "Boosts", "OnApplyFunctor"...
Alas, this did not work in any way, otherwise I would have made an additional bonus, for example, to the "bless" spell, an improvement in the attitude of the NPC.
By the way, if anyone can help, please let me know!