• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Dialogs and Freezing

Status
Not open for further replies.
Level 10
Joined
Mar 25, 2008
Messages
339
Hey, in the previous version of my game i forgot to even create the dialog so it would freeze people up(Horrible mistake on my part), now i have finished the dialog correctly for picking different heroes, but i have one remaining issue.

Issue:
If multiple people open up the Dialog at one time, will it freeze up the person who already had it open, or close it for him, or cause him to pick the same as the other person picking?
Here is one of the 6 or so triggers.
  • Male Teenagers Pick
    • Events
      • Unit - A unit enters Teenager Boys <gen>
    • Conditions
      • (Unit-type of (Entering unit)) Equal to Peasant Selector
    • Actions
      • Set PickyPicky[(Player number of (Owner of (Triggering unit)))] = 3
      • Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Spawn <gen>) over 0.00 seconds
      • Dialog - Show BlackorWhiteDialog for (Owner of (Triggering unit))
      • Unit - Remove (Triggering unit) from the game
If so then what would be the best way to stop the issue from happening in the future, i was thinking of a simple system that would check to see if someone already has the dialog open and stop a new one from opening, but that may cause major issues if someone opens the dialog and leaves or goes afk.
Note: Pickypicky Integer is simply to distinguish which hero it will give when you pick Black or White, like male teenager, female teenager, male adult, etc.

Here is the Gui for the Dialog Itsself:
  • Dialog for Black or White
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Dialog - Clear BlackorWhiteDialog
      • Dialog - Change the title of BlackorWhiteDialog to Pick Skin Color
      • Dialog - Create a dialog button for BlackorWhiteDialog labelled White
      • Set ButtonBlackWhite[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for BlackorWhiteDialog labelled Black
      • Set ButtonBlackWhite[2] = (Last created dialog Button)
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
"Pan camera" points (Center of Spawn <gen).

Other than that, I don't know, since I've never worked with Dialogs before xD
 
Level 10
Joined
Mar 25, 2008
Messages
339
Indeed, i just want to know if Multiple people having the same dialog open would cause a freeze or both people to be affected by one of them hitting a button on the same dialog, and if so a way to fix that.
 
Status
Not open for further replies.
Top