Enemy Dialog at Low Health

Post » Thu Mar 12, 2015 4:08 am

I'm trying to force dialog with an enemy NPC once they reach a certain amount of health remaining but I can't seem to find an example script anywhere that shows how to do that. The idea is that some voice lines will begin to play and the player can "chat" with the enemy before killing them.

I'm guessing I need a combination of the following functions - AllowBleedoutDialogue(), AllowPCDialogue() and AddToFaction() but so far my experiments haven't been successful.

Any ideas?

User avatar
Jade Barnes-Mackey
 
Posts: 3418
Joined: Thu Jul 13, 2006 7:29 am

Post » Thu Mar 12, 2015 12:19 pm

You have to add a force greet package with the condition being that a global variable you set OnEnterBleedout is one. Ensure the force greet has the flag Ignore Combat. Reset the global to 0 once leaving the forcegreet.
User avatar
Vickey Martinez
 
Posts: 3455
Joined: Thu Apr 19, 2007 5:58 am


Return to V - Skyrim