Author Topic: Dialog(or conversation) concurrency?  (Read 420 times)

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Dialog(or conversation) concurrency?
« on: August 13, 2011, 03:38:18 am »


                Hi,

Does anyone know if it's safe to assign many npcs the same conversation file? For instance, all smiths or all traders using the same convo, with of course some checks to determine wich options to display according to situation.

I have scripted a dynamic dialog wich does this in my PW, and I had no problem yet, but I'm still suspicious about the concept...

Thank you!

Kato 
               
               

               
            

Legacy_Morbane

  • Jr. Member
  • **
  • Posts: 79
  • Karma: +0/-0
Dialog(or conversation) concurrency?
« Reply #1 on: August 13, 2011, 04:16:25 am »


               I doubt that reusing  the  same conversation in different NPCs or the like would matter - even if they happen to be running at the same time - like it could happen in a PW for instance.
               
               

               


                     Modifié par Morbane, 13 août 2011 - 03:19 .
                     
                  


            

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Dialog(or conversation) concurrency?
« Reply #2 on: August 13, 2011, 05:10:51 pm »


               Sounds good, Morbane, thank you, hopefully you're right!
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Dialog(or conversation) concurrency?
« Reply #3 on: August 13, 2011, 05:24:01 pm »


               Its safe, easy to make for your world builders and it save resources. Definitely good concept.
               
               

               
            

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Dialog(or conversation) concurrency?
« Reply #4 on: August 13, 2011, 07:28:38 pm »


               Thank you Shadow!
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Dialog(or conversation) concurrency?
« Reply #5 on: August 13, 2011, 10:00:48 pm »


               It's only safe if you're not using dynamic tokens. If you are, you will need different versions of the same conversation, or they will intermix in potentially troublesome ways.

Funky
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Dialog(or conversation) concurrency?
« Reply #6 on: August 13, 2011, 11:53:21 pm »


               AFAIK it should work fine even with custom tokens Funky. For example at least old ATS craft and probably CNR too uses them. And many peoples can craft in different placeables with the same custom tokens used and except occasional glitches where you see something else (believed lags are cause) it works fine.
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Dialog(or conversation) concurrency?
« Reply #7 on: August 14, 2011, 12:19:30 am »


               It doesn't. Promise. We had to create 20 mirrored dynamic convos to workaround this issue for our dynamic convo system. The issue revolves around the timing of when the custom tokens are updated.

Funky
               
               

               
            

Legacy_virusman

  • Sr. Member
  • ****
  • Posts: 448
  • Karma: +0/-0
Dialog(or conversation) concurrency?
« Reply #8 on: August 14, 2011, 12:24:22 am »


               Or use NWNX Events instead of tokens to rewrite the convo nodes.
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Dialog(or conversation) concurrency?
« Reply #9 on: August 14, 2011, 02:09:47 am »


               The convo system uses nwnx events, to whittle a dozen scripts down to 1, for both conditional and action taken scripts. I don't know if we tried using it to update the nodes or not, though.

Funky
               
               

               
            

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Dialog(or conversation) concurrency?
« Reply #10 on: August 15, 2011, 06:44:17 pm »


               

FunkySwerve wrote...
The issue revolves around the timing of when the custom tokens are updated.

Oh, that's good to know, thanks Funky.
               
               

               


                     Modifié par Kato_Yang, 15 août 2011 - 05:48 .