The newbie
New Member
- Reaction score
- 0
It isn't random ;( First it kept giving my Hunter, then I changed the random to 1 - 8, then it kept giving me warrior. Dunno what's wrong.
My player number is 2 or 3, so I don't think that's the prob.
Ofc there is also HeroTypesHorde[2]-[5], but I only wrote these. It seems that it chooses the highest number always... ;(
Code:
If - Conditions
(Player number of (Triggering player)) Greater than or equal to 8
Then - Actions
Unit - Create 1 HeroTypesAlliance[(Random integer number between 1 and 8)] for (Triggering player) at TempPoint facing Default building facing degrees
Else - Actions
Unit - Create 1 HeroTypesHorde[(Random integer number between 1 and 8)] for (Triggering player) at TempPoint facing Default building facing degrees
Code:
Set HeroTypesHorde[1] = |cffffff00Rogue|r
Set HeroTypesHorde[6] = |cff9370dbWarlock|r
Set HeroTypesHorde[7] = |cffdeb887Warrior|r
Set HeroTypesHorde[8] = |cff7fff00Hunter|r
My player number is 2 or 3, so I don't think that's the prob.
Ofc there is also HeroTypesHorde[2]-[5], but I only wrote these. It seems that it chooses the highest number always... ;(