Author Topic: Auto-Ending Conversation?  (Read 322 times)

Legacy_BelowTheBelt

  • Hero Member
  • *****
  • Posts: 699
  • Karma: +0/-0
Auto-Ending Conversation?
« on: March 20, 2012, 08:06:16 pm »


               Is there a way to close a conversation that's hung or left open?

I have a message board that after you read it, requires you to navigate back to the main screen and click the "leave" option in order to close it and allow others to read the contents.  If a player exits the convo by other means (hitting escape, for example, which is a far, far more popular method), the convo gets hung and nobody after that can read the board.

Anyone else seen this issue?

Thanks!
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Auto-Ending Conversation?
« Reply #1 on: March 20, 2012, 08:18:24 pm »


               I have not seen the problem before, However I also do not see why you wild be happy with only one person being able to read the board at a time. If you make it to where more then one player can read the board at a time, it will sovle the problem you are having, without having to solve it.

To make it so that more then one player can talk to the board at a time, rewrite the script that starts the conversation to create an invisiable object for the player to talk to. Giving the Object a portriat of the message board will still keep it looking like they are talking to the board. Of cource if you are getting/storring Vars on the board you will need to rewrite the script to read from the board instead of object_self. Then when the player finishes the conversation just have the Conversation end and abort scripts destroy the object they where talking to.
               
               

               


                     Modifié par Lightfoot8, 20 mars 2012 - 08:20 .
                     
                  


            

Legacy_BelowTheBelt

  • Hero Member
  • *****
  • Posts: 699
  • Karma: +0/-0
Auto-Ending Conversation?
« Reply #2 on: March 21, 2012, 03:06:48 am »


               Interesting idea.  How do you tell the PC has finished the conversation if they escape from the convo (rather than ending it through the conversation itself)?
               
               

               
            

Legacy_MrZork

  • Hero Member
  • *****
  • Posts: 1643
  • Karma: +0/-0
Auto-Ending Conversation?
« Reply #3 on: March 21, 2012, 03:44:20 am »


               With the conversation editor open for that convo, the tabbed script widget in the lower-right (where the "Text Appears When..." and "Actions Taken" tabs are), there is a tab for "Current File". In that tab, you can specify an "Aborted" script that will run if the convo is aborted via Esc key or whatever. AFAIK, that script doesn't run when the convo ends normally.