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!
I will make it easier to understand. Make a variable and make its type Unit-type. Make it array size 1 and give it any name. Next make a trigger like this
Random Hero
Events
Map initialization
Conditions
Actions
-------- Random Hero Array --------
Set Randomhero[1] = Revenant
Set NumberofHeroes = 1
The revenant is a random hero that can be picked. Next make a trigger like this-
Random Select
Events
Player - Player 1 (Red) types a chat message containing -Random as An exact match
Player - Player 2 (Blue) types a chat message containing -Random as An exact match
Player - Player 3 (Teal) types a chat message containing -Random as An exact match
Player - Player 4 (Purple) types a chat message containing -Random as An exact match
Player - Player 5 (Yellow) types a chat message containing -Random as An exact match
Player - Player 6 (Orange) types a chat message containing -Random as An exact match
Player - Player 7 (Green) types a chat message containing -Random as An exact match
Player - Player 8 (Pink) types a chat message containing -Random as An exact match
Player - Player 9 (Gray) types a chat message containing -Random as An exact match
Player - Player 10 (Light Blue) types a chat message containing -Random as An exact match
Conditions
((Triggering player) Food used) Greater than or equal to 1
Actions
If (((Triggering player) Food used) Equal to 1) then do (Unit - Create 1 Randomhero[(Random integer number between 1 and NumberofHeroes)] for (Triggering player) at (Center of Item Region <gen>) facing Default building facing degrees) else do (Do nothing)
Player - Set (Triggering player) Current gold to 100
Player - Set (Triggering player) Current lumber to 0
Camera - Pan camera for (Triggering player) to (Center of Item Region <gen>) over 1.00 seconds
Notice I used this from my arena map so change the other actions to w/e you want.
i think he wants AR as in when the host (player 1) types -ar (like in dota) then everyone gets a random hero. so do the same random array that parrot head wrote for each hero, and for the second trigger make the event just if player 1 types -ar exact match and for the actions create the hero for each player that is playing.
PlayerGroup: Pick every player in all players and do actions
If (((Picked player) Food used) Equal to 1) then do (Unit - Create 1 Randomhero[(Random integer number between 1 and NumberofHeroes)] for (Picked player) at (Center of Item Region <gen>) facing Default building facing degrees) else do (Do nothing)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.