Ok, so to begin:
My destination is to create a trigger, which gives three random basic skills to the hero once it is spawned. The 4th one is gonna be ulti (random as well).
If I count properly, there are 72 hero abilities (besides ultis).
I thought of making it one by one, using IF/THEN/ELSE beginning from condition Random=1 to Random=72 and then copying it twice. The triggers would happen one after one, so that the hero would receive 3 skills, BUT.
The problem is - doing like this, there appears a chance of hero getting 2 or 3 the same abilities. I want to avoid it, but don't really have idea how to.
Any suggestions? I'll be thankful to hear.
Fobosus
My destination is to create a trigger, which gives three random basic skills to the hero once it is spawned. The 4th one is gonna be ulti (random as well).
If I count properly, there are 72 hero abilities (besides ultis).
I thought of making it one by one, using IF/THEN/ELSE beginning from condition Random=1 to Random=72 and then copying it twice. The triggers would happen one after one, so that the hero would receive 3 skills, BUT.
The problem is - doing like this, there appears a chance of hero getting 2 or 3 the same abilities. I want to avoid it, but don't really have idea how to.
Any suggestions? I'll be thankful to hear.
Fobosus