- Joined
- Dec 20, 2008
- Messages
- 19
Hello! Ive been trying to make a map, that you can have an option where you can hit a button and it will random a hero for you, Ive been looking through other threads and i cant seem to make one >_<, ive made one that when you click it, makes a random hero, but it doesnt work well because every time a unit aquires an item it spawned a hero. It worked like this
The random seed check is also unchecked.
I am confused on is not working....
Im trying to make an all random hero selector, that spawns a hero each time you buy it.
I also made an Item named "Random Hero"
I am also using regular WE if that helps
And here are my Variables:
Random_Heros = Unit-Type Array (1)
And these triggers made it whenever you aquire an item, you get a hero, how do i stop this? Plz help +rep for help, ty
-
Heros blue
-
Events
- Unit - A unit owned by Player 2 (Blue) Acquires an item
-
Conditions
- (Picked item) Equal to (Item carried by (Buying unit) of type Random Hero)
-
Actions
- Unit - Create 1 Random_Heros[(Random integer number between 1 and 93)] for Player 2 (Blue) at (Center of Random Hero 1 <gen>) facing Default building facing degrees
-
Events
-
Human Random
-
Events
- Map initialization
- Conditions
-
Actions
- Set Random_Heros[1] = Paladin
- Set Random_Heros[2] = Archmage
- Set Random_Heros[3] = Mountain King
- Set Random_Heros[4] = Blood Mage
- Set Random_Heros[5] = Keeper of the Grove
- Set Random_Heros[6] = Priestess of the Moon
- Set Random_Heros[7] = Demon Hunter
- Set Random_Heros[8] = Warden
-
Events
The random seed check is also unchecked.
I am confused on is not working....
Im trying to make an all random hero selector, that spawns a hero each time you buy it.
I also made an Item named "Random Hero"
I am also using regular WE if that helps
And here are my Variables:
Random_Heros = Unit-Type Array (1)
And these triggers made it whenever you aquire an item, you get a hero, how do i stop this? Plz help +rep for help, ty