- Joined
- Sep 20, 2015
- Messages
- 385
Hello. I have in my map a circle of power hero selection system. There is also the Random Hero option.
To do that i created a unit-type array variable, and in map initializaion i set all the variables with the hero type i want like
Set Customhero[x] = Archmage
When a unit enter the circle the command is
Unit - Create unit-type of CustomHero[random integer between 0 and Y]
It seems to work but the problem is when i start the map and i enter the circle there is always the same hero. The numbers are 0 -13. Even if it's random the game create always the 12 integer hero. I tryed many times and it always create the 12 integer hero.
Can someone tell me why? and how to fix this?
Also, i discovered there is always the same sequances of integers. The first is 12 after 8 and 5. Always the same every time i start the map.
Thank you
To do that i created a unit-type array variable, and in map initializaion i set all the variables with the hero type i want like
Set Customhero[x] = Archmage
When a unit enter the circle the command is
Unit - Create unit-type of CustomHero[random integer between 0 and Y]
It seems to work but the problem is when i start the map and i enter the circle there is always the same hero. The numbers are 0 -13. Even if it's random the game create always the 12 integer hero. I tryed many times and it always create the 12 integer hero.
Can someone tell me why? and how to fix this?
Also, i discovered there is always the same sequances of integers. The first is 12 after 8 and 5. Always the same every time i start the map.
Thank you