Making an NPC attack a training dummy.

Post » Mon Jun 18, 2012 7:01 pm

Hello!

Recently I've started to try out the Construction Set. I'm fairly new but managed to get the basics through tutorials. Now, one thing I can't seem to get working is making an NPC attack a training dummy.

So far I've tried copying the mechanic from Solitude's guards. What I did was copying the AI Package of interacting with a training dummy and copied it over to my own NPC. I gave it a bow and then I set a linked reference to the target dummy with a keyword. Currently, the NPC stands at range, looking at the dummy but not firing his bow.

I've also added ammo to his inventory, so that's not it. I'm also running modless so it shouldn't be any conflicting mods either. I think I'm just overlooking something crucial and I hope you guys can help me out!

Regards,

- Ismaru
User avatar
suniti
 
Posts: 3176
Joined: Mon Sep 25, 2006 4:22 pm

Post » Mon Jun 18, 2012 10:36 pm

I had a look at Borgakh the Steel Heart's AI package list, since she trains with a dummy at Mor Khazgur during the day. It looks like she uses a UseWeapon package template, with the target set to the dummy. Look for MorKhazgurBorghakhWeapon7x12Package.
User avatar
xemmybx
 
Posts: 3372
Joined: Thu Jun 22, 2006 2:01 pm

Post » Mon Jun 18, 2012 8:57 pm

Thanks for your response! I went to take a look for the package you referred to. Unfourtunately I didn't get much further.

It looked really simple. I copied the package over to my own NPC and renamed it so it'd be one of my "own packages" that I can mess around in. First of all I noticed some "XMarker" the package referred to. I also made one and put it in front of the dummy. Then it referred to the actual training dummy itself. I wanted to go ahead and select my own but unfourtunately I could select anything except for the training dummy. Weird!

Then I looked at the training dummy Borgahk used. A plain combat dummy. I copied that exact combat dummy and placed it in my cell (instead of the different dummy I had). Suddenly, I could select it for reference.

I fire up the game and still find the NPC does nothing. He plainly gazes at the dummy from a distance. He doesn't grab his weapon or anything, and I waited a few day cycles to see (I kept resting for 1-2 hours to check if he was doing something).

Gah.. what am I missing?
User avatar
noa zarfati
 
Posts: 3410
Joined: Sun Apr 15, 2007 5:54 am

Post » Mon Jun 18, 2012 9:17 pm

What I did was go to SolitudeWorld and SolitudeCastleDourDistrict01 and find the use info of the ranged targets. From there I found the NPC (GuardSolitudeTrainingBow) that used them and I copied his package (GuardSolitudeRangedTrainingPackage). I kept everything the same except for "Use Weapon Location" and placed a Xmarker Heading about 10m away (where I wanted my actor to be standing using my custom-ly placed target, facing it of course) and for "Target To Attack" I put an Xmarker (i know this is probably incorrect, but in less you link the actor to the target it is the only way) in the center of the hay target at bul's eye. Finished the package and voila! :D
Worked perfect for all my people.
User avatar
Charlotte Lloyd-Jones
 
Posts: 3345
Joined: Fri Jun 30, 2006 4:53 pm

Post » Mon Jun 18, 2012 7:38 pm

The guards in Solitude is where I initially started to look, too.

I just followed exactly what you said, yet that didn't work either. The NPC does go to the XMarker header, stands there and faces the archery target and then just doesn't do anything anymore.

I tried to check if it wasn't any issue with the weapon by attacking him, but he'll then fight me back with the bow and arrow I put in his inventory. So that's not the issue either.

If anyone might have another idea like these great guys above (thank you for your help!!), please let me know!
User avatar
No Name
 
Posts: 3456
Joined: Mon Dec 03, 2007 2:30 am

Post » Mon Jun 18, 2012 6:12 pm

[img]http://i1261.photobucket.com/albums/ii582/iliveforpt/Anybetter.png[/img]

Try and get it close to that. The Use Weapon location is to the heading on the left while the Target to Attack is the xmarker in the target. I may sounds pestering, but I just want to help.
Is the schedule off or something then?
User avatar
Becky Cox
 
Posts: 3389
Joined: Thu Jun 22, 2006 8:38 am

Post » Mon Jun 18, 2012 3:58 pm

You're not pestering at all! Any help is welcome and so is yours. I'm already happy you are willing to invest some time into helping me out. Hopefully we can find the problem! I've tried setting the Hour in the schedule to a fixed hour or -any-, but it seems to make no difference. He should be firing arrows for 7 hours but I usually skip through 3 days with intervals of 2 hours of resting. Never do I actually see him firing, though.

I think I have copied it exactly, yet it still won't work. To help, I've made a screenshot aswell. Do you see any mistake that I'm making? Could it have something to do with the fact that I'm making him shoot in an interior cell? I've also checked if the original NPC's (at solitude and the orc stronghold) actually fight dummies, and they do.

http://img.photobucket.com/albums/v521/arclete24/e56b09b4.jpg

Perhaps something else that's noteworthy is that the NPC has only this package in his list (so it can't conflict with other packages). He carries an imperial bow and 50 iron arrows, on top of his Hunter outfit...
User avatar
Darlene Delk
 
Posts: 3413
Joined: Mon Aug 27, 2007 3:48 am

Post » Tue Jun 19, 2012 2:15 am

Still haven't found a solution.. I thought I'd bump this post to get some new input from you guys :)
User avatar
rheanna bruining
 
Posts: 3415
Joined: Fri Dec 22, 2006 11:00 am

Post » Tue Jun 19, 2012 2:16 am

If your still trying to figure this out I found a way to set this up. After you have your package set(I copied the GuardSolitudeRangedTrainingPackage and changed the name to MyGuardRangedTraining and gave it to my archer) Then place your guard or whomever and your archery target, make an Idle marker at the place you want the archer to stand then link your archer to the Idle marker and link your archer to the target(no markers just the target) and give that link a keyword TrainingTarget save and your all set. Same should go for the sword targets just copy the GuardSolitudeMeleeTrainingPackage and change it. Good Luck
User avatar
Kat Stewart
 
Posts: 3355
Joined: Sun Feb 04, 2007 12:30 am

Post » Mon Jun 18, 2012 11:39 pm

Holy Guacemole! That actually worked!

I haven't tried out the melee package yet, but I'm already really happy I got an NPC to attack a ranged target thanks to you. After investing all those hours a solution was finally found :)

Thanks a bundle! You really made my day!
User avatar
jenny goodwin
 
Posts: 3461
Joined: Wed Sep 13, 2006 4:57 am

Post » Tue Jun 19, 2012 3:02 am

If your archer is a not so good shot like mine you could add an xmarker and place it inside the target, after checking in game look to and see if he is shooting low, high and position the marker accordingly and give it the keyword trainingtarget like the other but you will have to delete the other 1 from the linked tab. Good to know it worked.
User avatar
Hairul Hafis
 
Posts: 3516
Joined: Mon Oct 29, 2007 12:22 am


Return to V - Skyrim