I have fallen down the rabbit hole of AI modification/extension again, and before I fall too far I wanted to ask a couple questions of all y'all.
I am working on a system of alertness for NPCs. Here are a couple variations on a theme that I want to enable:
Situation 1:PCs trip an alarm (a special trap) in a lair of goblins. The alarm alerts the guards in a nearby guard room, and one of them will attempt to set off an area wide alarm so that all goblins in the area know that enemies have invaded the lair.
Situation 2:PCs manage to disarm the alarm trap, and surprise the goblin guards. One of the goblins on the first round of combat will attempt to strike the warmig drum. The PCs will have to stop him to prevent the area wide alarm.
I've not found anything like this available on the vault. So question 1: is there any system available that I could make use of?
Question 2:
I'm thinking that I could make use of a couple of existing hooks to make this work, and am interested in receiving feedback on these ideas
- Create a new silent shout which allows NPCs to yell out alerts for others. This would be an additional option in place of I WAS ATTACKED, would need to communicate to the other creatures in ear shot the location of the enemy, and should probably be disabled by the silence spell.
- Create one or two new user defined events on NPC AI. an ALARM/ALERT event for when an alarm is heard, and possibly a PREPARE event for the NPCs to get ready.
- Script a means to activate particular spawns in response to an alarm.
Thats all for now. I'll be working on this for awhile, and will post snippets of code when I can for feedback.