Okay, I'm having a little bit of trouble with getting my map finished. I'm currently working on an AoS kind of map with a duel arena.
My problem is that sometimes the triggers put the "selection circle" which you can choose a hero with into the arena instead of the players hero.
How can I specify that it should check that if the player is playing and that the unit is a hero before it puts it there?
I currently got:
I am also having a problem with integers, seeing as I'm completely new to it and reading from a tutorial for the basic stuff. This is for making a -random mode for players.
Thankful for answers.
~Archideas
My problem is that sometimes the triggers put the "selection circle" which you can choose a hero with into the arena instead of the players hero.
How can I specify that it should check that if the player is playing and that the unit is a hero before it puts it there?
I currently got:
-
Events
-
Time - Timer expires
-
-
Conditions
-
Actions
-
Unit - Pause all units
-
Countdown Timer - Pause Timer
-
Game - Display to (All players) the text: Time for duel!
-
Unit - Move (Random unit from (Units owned by (Random player from (All allies of Player 1 (Red)))) instantly to (Center of Fighter 1 <gen>)
-
Unit - Move (Random unit from (Units owned by (Random player from (All allies of Player 6 (Green)))) instantly to (Center of Fighter 2 <gen>)
-
Unit Group - Pick every unit in (Units in Duel Arena <gen>) and do (Actions)
-
Loop - Actions
-
Unit - Set life of (Picked unit) to 100.00%
-
Unit - Set mana of (Picked unit) to 100.00%
-
-
-
Wait 2.00 seconds
-
Game - Display to (All players) the text: Duel starts in...
-
Wait 2.00 seconds
-
Game - Display to (All players) the text: 3
-
Wait 2.00 seconds
-
Game - Display to (All players) the text: 2
-
Wait 2.00 seconds
-
Game - Display to (All players) the text: 1
-
Wait 2.00 seconds
-
Game - Display to (All players) the text: Fight!
-
Trigger - Run Duel Time <gen> (ignoring conditions)
-
Unit Group - Pick every unit in (Units in Duel Arean <gen>) and do (Actions)
-
Loop - Actions
-
Unit - Unpause (Picked unit)
-
-
-
I am also having a problem with integers, seeing as I'm completely new to it and reading from a tutorial for the basic stuff. This is for making a -random mode for players.
-
Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Player - Set (Picked player) Current gold to 750
-
Player - Set (Picked player) Current lumber to 100
-
Camera - Pan camera for (Picked player) to (Position of Tavern 0000 ) over 0.00 seconds
-
Player - Set (Picked player) Food cap to 6
-
-
-
Set Total_Heroes = 8
-
Set Random_Count = 8
-
Set Hero_Array[1] = Alchemist
-
Set Hero_Array[2] = Naga Sea Witch
-
Set Hero_Array[3] = Tinker
-
Set Hero_Array[4] = Beastmaster
-
Set Hero_Array[5] = Dark Ranger
-
Set Hero_Array[6] = Firelord
-
Set Hero_Array[7] = Pandaren Brewmaster
-
Set Hero_Array[8] = Pit Lord
-
For each (Integer A) from 1 to 8, do (Actions)
-
Loop - Actions
-
Set Random_Data[(Integer A)] = (Integer A)
-
-
-
Thankful for answers.
~Archideas
Last edited: