[Trigger] Problem with Dialog

Status
Not open for further replies.
Level 8
Joined
Sep 24, 2007
Messages
300
I created a dialog that appears when a player writes a messege. In-game, the dialog doesn't show up, but the screen get's dark and freezes, as it would actually appear. If you hit Enter, the first dialog button is pressed. But the dialog itself is not visible.

I also tried to clear the dialog before everything else, but didn't help. Any ideas?
Code:
  • Map Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Dialog - Change the title of WinDialog to Click players X tim...
      • Dialog - Create a dialog button for WinDialog labelled Quit menu
      • Set WinDialogButton[7] = (Last created dialog Button)
      • Dialog - Create a dialog button for WinDialog labelled (Name of Player 1 (Red))
      • Set WinDialogButton[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for WinDialog labelled (Name of Player 2 (Blue))
      • Set WinDialogButton[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for WinDialog labelled Draw
      • Set WinDialogButton[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for WinDialog labelled Reset
      • Set WinDialogButton[4] = (Last created dialog Button)
      • Dialog - Create a dialog button for WinDialog labelled Display current
      • Set WinDialogButton[5] = (Last created dialog Button)
      • Dialog - Create a dialog button for WinDialog labelled Submit
      • Set WinDialogButton[6] = (Last created dialog Button)
  • dialog
    • Events
      • Player - Player 1 (Red) types a chat message containing -declare as An exact match
    • Conditions
    • Actions
      • Dialog - Show WinDialog for Player 1 (Red)
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
They can not be created properly at or during Map initialization. You will have to create them afterwards (even 0.00 seconds may work as that is a delay but around 1 sec recommended due to less init lag).

If you are concerned about bugs, you can even create them the first time the command is entered although this is less efficent in the long run (more efficent if the command is never run).
 
Status
Not open for further replies.
Top