-
Manual Hero Pick
-
Events
-
Unit - A unit Sells a unit
-
-
Conditions
-
((Sold unit) is A Hero) Equal to True
-
-
Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
-
Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player)
-
Game - Display to (All players) the text: (A player has chosen + (Name of (Sold unit)))
-
Selection - Select (Sold unit) for (Owner of (Sold unit))
-
-
-
All Random Command
-
Events
-
Player - Player 1 (Red) types a chat message containing -ar as An exact match
-
-
Conditions
-
Actions
-
Trigger - Turn off Random Command <gen>
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Player((Integer A))) slot status) Equal to Is playing
-
-
Then - Actions
-
Set Random_Hero = (Random integer number between 1 and Random_Count)
-
Unit - Create 1 Hero_Array[Random_Data[Random_Hero]] for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees
-
Selection - Select (Last created unit) for (Owner of (Last created unit))
-
Game - Display to (All players) the text: (A player has randomed + (Name of (Last created unit)))
-
Player - Add -425 to (Player((Integer A))) Current gold
-
Set Random_Data[Random_Hero] = Random_Count
-
Set Random_Count = (Random_Count - 1)
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
-
-
Map Initialization
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Player - Set Player 1 (Red) Current gold to 750
-
Player - Set Player 2 (Blue) Current gold to 750
-
Camera - Pan camera as necessary for Player 1 (Red) to (Center of Region 002 <gen>) over 0.00 seconds
-
Camera - Pan camera as necessary for Player 2 (Blue) to (Center of Region 002 <gen>) over 0.00 seconds
-
-
-
Set Total_Heroes = 8
-
Set Random_Count = 8
-
Set Hero_Array[1] = Blood Mage
-
Set Hero_Array[2] = Mountain King
-
Set Hero_Array[3] = Nazgul
-
Set Hero_Array[4] = Paladin
-
Set Hero_Array[5] = Ice Lord
-
Set Hero_Array[6] = Far Seer
-
Set Hero_Array[7] = Dreadlord
-
Set Hero_Array[8] = Priestess of the Moon
-
For each (Integer A) from 1 to 8, do (Actions)
-
Loop - Actions
-
Set Random_Data[(Integer A)] = (Integer A)
-
-
-
-
Ok guys here is the problem:When I type -ar I always get same hero.My opponent also get same hero(not same as me).I always get Far Seer and opponent gets Blood Mage.1v1.Also,when we get that heroes they aren't removed from tavern,and we can pick any hero again.My questions are: Why we are getting same heroes always,why they aren't removed from tavern,how I can set 1 hero per player(so player can't have 2 heroes).And how to fix this?Thanks in advance.
:/