I know this could be done by using switches...
But i don't know how to use switches (Sad)
Please help me if you know how to do it, thanks !
It sould be easier to help you if you post your quastion in your post, but I assume by the thread title that you wanna give random heroes for players.
To do so, you need to:
1. Create a location for every player that gets a random hero where you want him to get the hero, or 1 location if they all get their hero at the same spot.
2. This trigger:
Players:
All Players
Conditions:
(whenever you want the players to recive the random hero)
Actions:
Randomize 'switch x'
Randomize 'switch x+1'
Randomize 'switch x+2'
... (if you have only two heroes to ranndomly choose one of them use only one switch, if you have 4 use 2, if you have 8 use 3, if you have 16 use 4, etc)
Set 'switch Y' (make sure that this switch is NOT one of those that you randomize)
3. create a trigger for every hero&player, for example:
Players:
Player1
Conditions:
'switch Y' is set.
'switch x' is set
'switch x+2' is set... etc for all the x's (you can name them whatever you want btw)
Actions:
Create 1 'whatsoever hero unit' at 'location 1' for current player.
(optional, use that if you're gonna preserve) Clear 'switch Y'.
than the next trigger will be like first only with 1 x as clear in condition.
than a different x, till you go thru all, and than it's two x's.
the Y is to make sure your unit will be created after the randomizing and not right away.
hata, I already gave you a map with an example of random events with switches. You still need further explaination or did you not look at it?
QUOTE(Chu @ Jan 14 2005, 11:39 PM)
hata, I already gave you a map with an example of random events with switches. You still need further explaination or did you not look at it?
[right][snapback]125130[/snapback][/right]
I don't understand it...
it's kind of confusing while so many switches are set...
I am still figuring out the key !
Well if you can't understand it after looking at the actual triggers then I don't think I could explain it to you.
the only problem that i could see with this is that the players somehow get the same hero but thats not a big problem if you dont mind people having the same characters.
I've overcome this problem already (After a long time research on switches and replay)
Thanks Chiu and all the guys helped me here

My map is almost done, i am trying to add some small functions to it...
switches are confusing but all i know that there good randomizers like if you want go look for the thing map and maybe copy sum triggers from it???
but its for idle players, so
add
elapsed time : 9 s
Commands at least one chooser
Add those to conditions.. but I'm pretty sure you have them
good luck
How about death counters? That works, unless ur randomizing...
QUOTE
Random pick a hero for idle players..., I don't know how to make a switch so...

QUOTE
the only problem that i could see with this is that the players somehow get the same hero but thats not a big problem if you dont mind people having the same characters.
Nah you could fix this. Like, put each hero possible to get in a corner in the map (owned by p12). Then instead of having the create trigger, use the give trigger.
QUOTE(PearS @ Jan 17 2005, 10:02 PM)
Nah you could fix this. Like, put each hero possible to get in a corner in the map (owned by p12). Then instead of having the create trigger, use the give trigger.
[right][snapback]127028[/snapback][/right]
or you could save the trouble and simply preserve the randomizing trigger so that it'll randomize again for every player...
If you dont want them to have the same hero, then just check for the same hero when they are created. Like "player1 bring atleast 1 hero to spawninglocation, set heroswitch" , "heroswitch is set and allplayers bring atleast 2 hero to anywhere, remove one hero at spawninglocation and set randomizeswitch" . You should allways have a switch that sets and clears when you randomize. you could also have it set a switch when it creates the unit, and whenever it tries to create a unit it checks if the switch for that unit is set. <That would work better.
Not really because he would be forced to make triggers for every hero, and from what I saw, it would be a lot of triggers. The best course of action would just be randomization through switches and he seems to have that down now.
If he needs help with anything other than than he can post a new topic, other than that he has his problem solved. No more posting needed.