- 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.
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:
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
-
Events
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)
-
Events