How would I modify NPC combat?

Post » Wed Jun 20, 2012 10:28 pm

Now, my essential followers just take a knee and heal when they are in a fight and getting their butts kicked. I would like them to go unconscious until after combat is over, like in Dragon's Age.

I have been reading tutorials on Papyrus, and in my head, it sounds like and easy mod to make. I just need to find the NPC combat script so I can edit it! Or would it just be easier to write a new script?

Could someone point me in the right direction so I can get started? Right now, I am just stumbling around in the dark here! LOL
User avatar
Latino HeaT
 
Posts: 3402
Joined: Thu Nov 08, 2007 6:21 pm

Post » Thu Jun 21, 2012 1:37 am

It may be better to post your inquiry in the http://www.gamesas.com/forum/184-the-creation-kit/ part of the forum, you'll probably have better luck, so I would maybe request a mod to move your thread. If you made such a mod I would download it immediately as I think the idea is awesome.
User avatar
Spooky Angel
 
Posts: 3500
Joined: Thu Aug 10, 2006 5:41 pm

Post » Wed Jun 20, 2012 2:17 pm

Apply an alias script that hooks to "OnDying" check if the actor stored in the alias is "essential" or "protected" and have the script "wait" until the time it takes for the "dying" to end and apply damage to them if your player "IsInCombat" I don't think its possible to vary the length of the "wounded" duration so the solution would be to just continuously wound them until your out of combat.
User avatar
renee Duhamel
 
Posts: 3371
Joined: Thu Dec 14, 2006 9:12 am

Post » Wed Jun 20, 2012 2:03 pm

Thanks! Good idea about moving the post, and thanks for a direction to go! It's two steps forward and one step back, but I'm learning!
User avatar
Rhysa Hughes
 
Posts: 3438
Joined: Thu Nov 23, 2006 3:00 pm

Post » Wed Jun 20, 2012 9:37 pm

Man, I can't even get this simple script to work! It compiles ok.

Scriptname zzzunconscious extends ActorEvent OnDying(Actor akKiller)    If (akKiller.IsEssential())	   Debug.MessageBox("Hello, World!")    endIfEndEvent

Don't laugh! I'm learning! :banana:
User avatar
Laura Ellaby
 
Posts: 3355
Joined: Sun Jul 02, 2006 9:59 am


Return to V - Skyrim