Solu9
You can change this now in User CP.
- Reaction score
- 216
SOLVED
I have a region on top of a Circle of Power. When the player moves his Wisp onto the circle a random hero is supposed to spawn in a nearby region.
Trigger 1.
The name is the same because the units are made from the same hero. Every number from 1-10 has been assigned to a unit different from the others. The name will be changed at the very end, because it's much easier to keep track of the units this way.
Trigger 2.
This is where the random unit will be created BUT. For some reason the game always picks the number 7, and thus the same unit will always spawn.
What's wrong?
I have a region on top of a Circle of Power. When the player moves his Wisp onto the circle a random hero is supposed to spawn in a nearby region.
Trigger 1.
Trigger:
- Set Agility
- Events
- Map initialization
- Conditions
- Actions
- Set HeroAgi[1] = Naga Sea Witch
- Set HeroAgi[2] = Naga Sea Witch
- Set HeroAgi[3] = Naga Sea Witch
- Set HeroAgi[4] = Naga Sea Witch
- Set HeroAgi[5] = Naga Sea Witch
- Set HeroAgi[6] = Naga Sea Witch
- Set HeroAgi[7] = Naga Sea Witch
- Set HeroAgi[8] = Naga Sea Witch
- Set HeroAgi[9] = Naga Sea Witch
- Set HeroAgi[10] = Naga Sea Witch
- Events
The name is the same because the units are made from the same hero. Every number from 1-10 has been assigned to a unit different from the others. The name will be changed at the very end, because it's much easier to keep track of the units this way.
Trigger 2.
Trigger:
- Pick Agility
- Events
- Unit - A unit enters Pick Agility <gen>
- Conditions
- (Unit-type of (Entering unit)) Equal to Wisp
- Actions
- Unit - Remove (Entering unit) from the game
- Unit - Create 1 HeroAgi[(Random integer number between 1 and 10)] for (Owner of (Entering unit)) at (Center of Choose Passive <gen>) facing Default building facing degrees
- Events
This is where the random unit will be created BUT. For some reason the game always picks the number 7, and thus the same unit will always spawn.
What's wrong?