- Joined
- Jan 31, 2010
- Messages
- 3,552
So I'm projectin' and I've encountered an issue.
Basically, I have 140 types of creeps a player can face in a game. There are 70 groups of creeps, which means that, there's a preset of one ranged and one melee creep per group, and the groups are always the same. Out of them all, a player can possibly encounter only 50 every game, meaning 20 will not be played at the time.
I've tried to trigger this via simple method: setting a variable to a random value between 1 and 70, and then doing the other things. However, this has a great flaw of making it possible to encounter same creep groups more than once per game. I've also tried to add conditions to the trigger whenever a group is selected, looping the trigger until it gets a value which is not played already, but this caused both lag and is not functional.
I'm kinda trapped in place, as I'm trying to get a random number from 1 to 70, which also removes the randomed value whenever it's played per run of the trigger.
Suggestions for random factor with exclusion of randomed numbers? Or a testmap, anything can do.
Basically, I have 140 types of creeps a player can face in a game. There are 70 groups of creeps, which means that, there's a preset of one ranged and one melee creep per group, and the groups are always the same. Out of them all, a player can possibly encounter only 50 every game, meaning 20 will not be played at the time.
I've tried to trigger this via simple method: setting a variable to a random value between 1 and 70, and then doing the other things. However, this has a great flaw of making it possible to encounter same creep groups more than once per game. I've also tried to add conditions to the trigger whenever a group is selected, looping the trigger until it gets a value which is not played already, but this caused both lag and is not functional.
I'm kinda trapped in place, as I'm trying to get a random number from 1 to 70, which also removes the randomed value whenever it's played per run of the trigger.
Suggestions for random factor with exclusion of randomed numbers? Or a testmap, anything can do.