Need help with guard AIs

Post » Tue May 17, 2011 12:17 pm

My NPCs are driving me crazy.

I'm trying to create a guard rotation. I have two guards, a barracks, and a guard spot.

What I want is this:
DayGuard:
-Sleep from 22 to 6.
-Guard from 6-18
-Wait for NightGuard to show up
-Go back to barracks and chill until bedtime

NightGuard:
-Sleep from 10-18
-Guard from 18-6
-Wait for DayGuard to show up
-Go back to barracks and chill until bedtime

They have similar schedules set up, with this ordering:
OffDuty:
-Wander, must complete, once per day, no time/duration set, weapons/armor unequipped, radius 50 of xmarker in barracks
Relief:
-Find, must complete, once per day, time set to end of shift (18 for DayGuard, 6 for NightGuard), no duration, radius 50 of xmarker guardspot, target set to objectID of the other guard, count of 1
Sleep:
-Sleep, skip fallout behavior, weapons/armor unequipped, time set to bedtime (22 for DayGuard, 10 for NightGuard), location set to barracks cell
Guard:
-Travel, must reach location, time set to shift time (6 for DayGuard, 18 for NightGuard), duration set to 12, location set to xmarkerheading guard post.

The problem seems to be the find package. even though the other guard will be standing directly in front of the guard, he won't go out of "find" and just stands there indefinitely.

I've looked through the guard AIs for the city guards, and my ai package seems to be basically the same. Any ideas what is going on? This is driving me crazy.
User avatar
clelia vega
 
Posts: 3433
Joined: Wed Mar 21, 2007 6:04 pm

Post » Tue May 17, 2011 3:16 am

Try increasing the radius on the find package. 50 is pretty tiny.
User avatar
candice keenan
 
Posts: 3510
Joined: Tue Dec 05, 2006 10:43 pm

Post » Tue May 17, 2011 10:44 am

I have to agree with Scruggs 50 is pretty much expecting them to be standing on top of what they are want to find and that goes double for the wander package.
User avatar
k a t e
 
Posts: 3378
Joined: Fri Jan 19, 2007 9:00 am

Post » Tue May 17, 2011 7:07 am

Well, one thing I discovered is that Oblivion doesn't like finding ObjectIDs that are set to NPCs. In fact, the NPCs weren't even going into their find AI packages. When I set it to find an explicit reference (ie, DayGuard must find NightGuardRef), the NPC goes into the find package correctly. The radius was a bit small, and works better now that I turned it up, thanks.

However, the guard always goes to the target's current location, regardless of what I set as a distance in the location or find radius (even turning them both down to 0). The guard does hunt down and talk to his relief guard, but I want him to just stand there until the relief guard arrives.

Any more suggestions?
User avatar
Andrea P
 
Posts: 3400
Joined: Mon Feb 12, 2007 7:45 am

Post » Tue May 17, 2011 6:27 am

Ambush package?
User avatar
Enie van Bied
 
Posts: 3350
Joined: Sun Apr 22, 2007 11:47 pm

Post » Tue May 17, 2011 2:29 pm

Ambush package?


Ambush package does the trick. Your name is well deserved. Thanks.
User avatar
xx_Jess_xx
 
Posts: 3371
Joined: Thu Nov 30, 2006 12:01 pm


Return to IV - Oblivion