HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dialog Question

03-10-2004, 06:10 PM#1
PatruX
Here we go again..

I wonder if I, in any possible way could make triggers happen while player is in a dialog.

---- Example ----

When the game starts a dialog appears where the players will choose between 9 heroes.

I've put up a Time Elapsed in another trigger which will after 20 seconds will do following:

----------------------------------------------------------------
Variables: Unit / UnitType = the unit player 1 has chosen, RandomUnit = a random hero
----------------------------------------------------------------

Dialog - Hide ChooseHeroDialog[1] for Player 1 (Red)

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 1 (Red) slot status) Equal to Is playing
Unit[1] Equal to No unit
Then - Actions
Unit - Create 1 RandomUnit[(Random integer number between 1 and 9)] for (Triggering player) at (Random point in Player 1 <gen>) facing (Random point in (Playable map area))
Game - Display to Player Group - Player 1 (Red) for 10.00 seconds the text: (You didn't choose a Hero so you got + (Name of (Last created unit)))
Else - Actions
Unit - Create 1 UnitType[1] for Player 1 (Red) at (Random point in Player 1 <gen>) facing (Random point in (Playable map area))
Game - Display to Player Group - Player 1 (Red) for 10.00 seconds the text: (You've chosen + (Name of (Last created unit)))

----------------------------------------------------------------
-I made the same for the other players too-

That would make every player that have'nt choosen a hero within 20 seconds to get a random hero..

So the problem is that it WON'T pick a random hero for afk players etc. because the dialog "stops" the other triggers?
03-10-2004, 06:44 PM#2
Draco
Dialogs don't pause the game in multi player.
03-10-2004, 08:43 PM#3
PatruX
Oh, They don't? ... Must try (later)!
03-10-2004, 09:47 PM#4
ThyFlame
If you were wondering, you can test that in a direct connect game with yourself. Battle.net is not needing.
03-11-2004, 01:57 PM#5
PatruX
Well, Of course I'm testing in singel player custom game!