- Joined
- May 24, 2009
- Messages
- 55
I would like to achieve this:
If an indexed unit-type has been created before, I don't want another unit of the same unit-type to be created again.
So that each unit-type will be spawned only once, a randomly rotated indexed unit-types.
I'm currently using something like this.
I've indexed a list of unit types from 1-7:
I've peeked at Ryoko's Dota-Template random hero system, but I fail to understand the triggers and it's variables. Any kind of help/solution/documentation links on this matter will be greatly appreciated.
If an indexed unit-type has been created before, I don't want another unit of the same unit-type to be created again.
So that each unit-type will be spawned only once, a randomly rotated indexed unit-types.
I'm currently using something like this.
I've indexed a list of unit types from 1-7:
-
Set Unit-Type[1] = Footman Boss
-
Set Unit-Type[2] = Knight Boss
-
Set Unit-Type[3] = Rifleman Boss
-
Set Unit-Type[4] = Paladin Boss
-
Set Unit-Type[5] = Peon Boss
-
Set Unit-Type[6] = Worker Boss
-
Set Unit-Type[7] = Grunt Boss
-
Unit - Create 1 Unit-Type[(Random integer number between 1 and 7)] for Player 12 (Brown) at (Position) facing (Degrees).
I've peeked at Ryoko's Dota-Template random hero system, but I fail to understand the triggers and it's variables. Any kind of help/solution/documentation links on this matter will be greatly appreciated.
Last edited: