Author Topic: Triggering self-conversation upon PC death?  (Read 458 times)

Legacy_Wyndhane

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
Triggering self-conversation upon PC death?
« on: May 27, 2012, 06:30:21 pm »


               Hello, venerable Neverwinter Nights Scripting Forum-people. The time has come for me to pose another question, hopefully less foolish than my last.

I'm trying to set things up so that a variable-death-sequence-conversation and following module epilogue can be triggered anytime the player dies. To give the player the option to decline to read through the epilogue (it would just be annoying should somebody die often) and just skip to loading/exiting the game, I figured a conversation with two options, one of which would lead to the epilogue while the other does a PopUpDeathGUIPanel (no respawning, no waiting), would be the way to go.

The issue with that now is that it seems to be the case that dead characters cannot converse or be conversed with.

So here's the question(s); Is it possible to force a conversation with a dead character somehow?
Should I give up on trying to make it work this way and just raise the PC, lay them back down and pretend they're still dead (the issue there being that the PC is still in combat, enemies continue to attack them, and they cannot start a conversation with themselves. Kinda stuck on this at the moment.)
Does anybody here have an idea for a better (or, in fact, a *working* solution. Mine don't work at all so far.) solution?

I do fairly desperately want to avoid teleporting the character elsewhere before beginning the conversation, as the death sequence would be far more stylish if it played in the location of the player's death. Doing this is kind of my last and least desirable thing to resort to in this matter.

Back to experimenting for me. :x Thank you for taking the time to read this query, and oh god I love you if you can help. ^^
               
               

               
            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Triggering self-conversation upon PC death?
« Reply #1 on: May 28, 2012, 02:39:43 am »


               You could do a half second blackout on death, during which you copy the PC to the same spot and kill the copy.
 Then you raise the PC, apply a hazy effect to them, set them to a custom neutral to all faction and as plot, and are free to have them converse with themselves.
 Cutscene immobilize would be recommended as well so they don't wander off instead of doing the death dialogue.
               
               

               
            

Legacy_Wyndhane

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
Triggering self-conversation upon PC death?
« Reply #2 on: May 29, 2012, 10:01:12 pm »


               Whuzzah! Yes, this got me on the right track.

Thank you very much. '<img'>