Npc Fights But Yeilds Before Death

Post » Mon Sep 21, 2009 6:30 pm

Hi. Iv seen this before but I'm not sure how to do it - I want the player to confront an NPC who will engage in dialog but then break off and attack the player. After a while (and of course providing the player is not killed first!) the NPC should yield and dialog will begin again, straight away.

Dow is this done?

cheers

MVK
User avatar
Charlotte Lloyd-Jones
 
Posts: 3345
Joined: Fri Jun 30, 2006 4:53 pm

Post » Mon Sep 21, 2009 12:21 pm

Which part are you having problems with? The "StartCombat player" or the "Yield" and "StartConversation"?

Or the bit in between, where you have to decide when to stop?
User avatar
Tasha Clifford
 
Posts: 3295
Joined: Fri Jul 21, 2006 7:08 am

Post » Mon Sep 21, 2009 4:37 pm

Starting combat is no problem, what I cant get to grips with is how to make the NPC yield before death, and start back with the dialog.

Cheers

MVK
User avatar
lucile
 
Posts: 3371
Joined: Thu Mar 22, 2007 4:37 pm

Post » Mon Sep 21, 2009 10:24 pm

*Shamelss bump* Ill be getting to this point in the next few days so if anyone has any ideas for me Id appreciate them!

Cheers

MVK
User avatar
RObert loVes MOmmy
 
Posts: 3432
Joined: Fri Dec 08, 2006 10:12 am

Post » Mon Sep 21, 2009 12:32 pm

Add a token to them and monitor their health. When it falls below your threshold, call yield and follow it up with a startConversation call.
User avatar
GEo LIme
 
Posts: 3304
Joined: Wed Oct 03, 2007 7:18 pm

Post » Mon Sep 21, 2009 11:28 am

Okay, I looked up tokens in the Wiki so now I know roughly what I need to do, but the script I have no idea of. How would I monitor the NPC health?

Cheers

MVK
User avatar
Wayne W
 
Posts: 3482
Joined: Sun Jun 17, 2007 5:49 am


Return to IV - Oblivion