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!
So I'm trying to make a map that's arena-based. Each player starts out with a random hero. Problem is, I can't get the triggers right. Here's what I have.
1. What kind of variable is Heroes?
2. Make sure that "Use fixed random seed" is unchecked.
3. Explain more, like can there be multiple heroes of the same time?
then you set each array to each hero (your first trigger is fine but you will want to add another variable that sets the max number of hero types in your game)
and
Unit - Create 1 Heroes[(Random integer number between 1 and maxHerocount)] for Player 1 (Red) at (Player 1(Red) start location) facing Default building facing degrees
where Heroes is your variable with array
and maxHerocount is the number for how many heros you have in ur map.
It's checked off, still only spawning heroes 3 and 4.
EDIT: Odd, for some reason when I hit "Test Map" it's always the same guys, but when I start it in WCIII it works fine. Well, thanks for your help, I appreciate it.
Set Random_Hero[1] = (Random unit from (Units of type Paladin))
Set Random_Hero[2] = (Random unit from (Units of type Archmage))
Set Random_Hero[3] = (Random unit from (Units of type Mountain King))
Set Random_Hero[4] = (Random unit from (Units of type Blood Mage))
Random Heroes TRIGGER 2
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Is playing)) and do (Actions)
Loop - Actions
Unit - Create 1 (Unit-type of Random_Hero[(Random integer number between 1 and 4)]) for Picked Player at (Center of (Playable map area)) facing Default building facing degrees
There you go, that should do it... Simple and easy...
Now, if you dont want ALL players to get random her, just change the (All players matching (((Matching player) slot status
and set it to (Player(Player 1 (Red)))
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.