Author Topic: Halting conversations  (Read 1250 times)

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0
Halting conversations
« on: February 07, 2016, 10:42:39 am »


               

There is this conversation my NPC has that end with NPC talking - I want to keep it this way because of scripting reasons. Some time when I tried it the NPC would say his last line in the conversation and the talk would end immediately. However, for some reason it works differently now and the game prompts the player to finish the conversation anyway instead of it finishing automatically.


 


So, what might be the reason for this?


 


And while we're at it, is there some function that could be used to halt the conversation? The only circumstances I know of that cancel it is moving too far from the NPC and engaging in combat. Such a function would come in handy in such a situation as described above and in some others.



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Halting conversations
« Reply #1 on: February 07, 2016, 11:27:44 pm »


               The usual way to terminate a conversation is through the conversation logic itself. Arriving at a node with no true conditions will do it.


if the final valid line is an NPC line, the conversation window should close immediately, the final NPC line being visible only in the log.


I don't know of anything that will suddenly require more input from the player (other than adding a player line to the conversation, obviously).


I'm not aware of a script function that will stop a conversation.


Normally, the escape key, moving away or attacking will fire the abort script.


However, on the final line, if the player only has one option, I find this is buggy.


Also, rest and save game are quirky, in my experience.


In cutscene mode, escape fires cutscene abort but not conversation abort. I've had to resort to deleting the conversing object (often an invisible placeable) in such cases.


I'd be very interested to hear from anyone who has a better understanding.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Halting conversations
« Reply #2 on: February 08, 2016, 09:24:48 am »


               

try start new nonexistant conversation or conversation with no valid node ie only one node which will return false everytime



               
               

               
            

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0
Halting conversations
« Reply #3 on: February 11, 2016, 12:30:38 pm »


               

Thank you, I'll try it and post the results.



               
               

               
            

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0
Halting conversations
« Reply #4 on: February 15, 2016, 05:32:39 pm »


               

Well, it didn't work. I still get an empty conversation line from the NPC and a prompt to end the conversation.


 


1zpisz6.jpg