SHOVA wrote...
I believe clear all actions causes the hostile to stop attacking, long enough for the set is neutral to kick in. I think it is just one of the quirks that NWN has always had.
Yes, you are right. Hostile creatures however do not attack unless told to do so, and since I've been controlling that with a custom Perception event I haven't needed to worry about it. This is some indication that custom AI will likely be needed for the system I am developing.
More findings... I was tinkering further with
SetIsTemporaryNeutral. This time I am using the decay feature, so that the adjusted reputation is undone over time. By now it is fairly clear that SetTemporaryNeutral sets personal reputation at Faction Reputation - 50. This appears to be a clearing of personal reputation then a reduction of personal reputation by 50.
The decay feature makes this function even more odd:- If you use the default 180 seconds for the period of decay, then personal reputation increases by 1 every 3.6 seconds for 180 seconds. This is not what I expected. I expected the reputation to be stable for the duration and then to decay after it was over. Instead it decays at an equal rate over the duration, and then stops when the duration is up. This works, but is of limited use.
- Then I increased the period of decay to 360 seconds and this enabled an initially neutral NPC to become friendly because the personal reputation still increased by 1 every 3.6 seconds. So for 180 seconds the creature slowly climbs back to normal, then over the next 180 seconds personal reputation towards the target increases by another 50. After it is finished all the changes to reputation are returned to the reputation it had at the beginning.
- Then I tried this for a period of 50 seconds. The rate of increase stayed at 1 per 3.6 seconds. After 50 seconds reputation then went back to what it was at start.
I am not sur how I would make use of that. BUT I wonder if SetIsTemporaryFriend can be used to keep a creature in the Neutral category most of the time. I'll test that next.
Modifié par henesua, 05 décembre 2012 - 05:24 .