Dialog Window Problems

maldruzard

Member
Reaction score
2
Hey there!

I have some dialog triggers in my map for viewing item descriptions and creating them, etc... However, when testing in multiplayer, my friend noticed that when he opened up a dialogue window while harvesting, the window went completely clear and he had no way of closing it, and was forced to alt+f4. I am not sure why this has happened, these are the triggers:

create
Events
Player - Player 1 (Red) types a chat message containing -window as An exact match
Player - Player 2 (Blue) types a chat message containing -window as An exact match
Player - Player 3 (Teal) types a chat message containing -window as An exact match
Player - Player 4 (Purple) types a chat message containing -window as An exact match
Conditions
Actions
Dialog - Clear Creations
Dialog - Change the title of Creations to Wood Axe Creations:
Dialog - Create a dialog button for Creations labelled Campfire
Set Campfirebutton = (Last created dialog Button)
Dialog - Create a dialog button for Creations labelled Crude Fence
Set Crudefencebutton = (Last created dialog Button)
Dialog - Create a dialog button for Creations labelled Wooden Helmet
Set Woodenhelmetbutton = (Last created dialog Button)
Dialog - Create a dialog button for Creations labelled Wooden Armor
Set Woodenarmorbutton = (Last created dialog Button)
Dialog - Create a dialog button for Creations labelled Wooden Boat
Set boatbutton = (Last created dialog Button)
Dialog - Create a dialog button for Creations labelled Close
Dialog - Show Creations for (Triggering player)


Buttanz
Events
Dialog - A dialog button is clicked for Creations
Conditions
(Clicked dialog button) Equal to Campfirebutton
Actions
Dialog - Clear Dialogz[1]
Dialog - Change the title of Dialogz[1] to Campfire:
Dialog - Create a dialog button for Dialogz[1] labelled Information
Set Butaanzzz[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialogz[1] labelled Create [5 Lumber, 1...
Set Butaanzzz[2] = (Last created dialog Button)
Dialog - Create a dialog button for Dialogz[1] labelled Back
Set close[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialogz[1] labelled Close
Dialog - Show Dialogz[1] for (Triggering player)

I'm not sure if it was something to do with the harvesting, or whether it was something to do with multiple players attempting to access the dialog at once. Anyone have any idea why this could happen?

Cheers! :(
 

death_knight

Dark is the heart of a corrupted man.
Reaction score
24
It would more than likely be the fact that more than one player is trying to access the dialog windows at the same time. This can be solved relatively simply by creating the dialog variables for each player (e.g. there's a dialog window variable representing the first dialog window for each player).
 

maldruzard

Member
Reaction score
2
It would more than likely be the fact that more than one player is trying to access the dialog windows at the same time. This can be solved relatively simply by creating the dialog variables for each player (e.g. there's a dialog window variable representing the first dialog window for each player).

Thank you! I just spent about 20 minutes creating all the new variables and assigning them to the dialogs and the buttons, but I think it should work now! :)

Cheers!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top