Warcraft III resources & community, 2003–2006 · archived

TRIGGER - Random Hero Selection

2 posts
#1

TRIGGER - Random Hero Selection

I'm gonna make a kind a Hero Arena and i have done picked out lots of Heroes and placed them on the map... And you can select any off them but i want to make a Random Selection so when you click on the Random Unit i have put out the Wc3 shall automaticly choose one Hero and place it on the map and give it a extra Item... How do i make that?
#2
I'll tell you step by step:

1- Make a variable, integer.
2- A trigger, when random is chosen = Set (yourvariable) is a random number between (x) and (y).
3- Then a trigger which is fired after the randomisation. containing an if/then/else for each hero, if (yourvariable) is equal to (1) then Unit - create (q)

If you don't understand this, i can make it for you. Just ask.