• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

random hero

Status
Not open for further replies.

Djawa

D

Djawa

I need trigger random hero for my map.
I mean..I'll give a player time to choose a hero.
After few minutes,Tavern will be removed.
If player not choose ahero, we'll give him ahero randomly but not same each other.
POST ME IF YOU KNOW! :?
BTW,Download my map by title:Lord of the Ring created by PRIBUMI-in epicwar.com
THANKS FOR ATTENTION!!! :)
 
Heh? Orang Indonesia ya?

Nvm.. actually.. are u an experienced triggerer? If not you could download some hero selection systems etc. DotA Template is good too.

I would love to post the script right now or even upload it but im really busy triggering, terraining etc my own map.

GL with ur MaP!
 
i dont noe if this is the right answer to your question but.

1. Create Variable
Random_Unit - Unit Type Array - none
Random_Num - Integer - 0(Defualt)

2.Create a Trigger.
Event: Map Intilization
Condition: none
Action: (Go to step 3)
3. Set ALL YOUR HEROE'S to the Variable in the first Trigger and the end when u set the hero'es, set them to the amount of hero'es there are.
E.g
set "Random_Unit" to "Paladin".
set "Random_Unit" to "Bloodmage".
set "Random_num" to "2"


4.Create another Trigger.
Event: player types exact massage "-random"
Condition: none
Action:
Create "1" "random number between 1 to "random_num" at position of "Region"


Alrite, dunnoe if this is the answer, didnt really understand but yeah. Hope this will help u in any other maps.
 
Status
Not open for further replies.
Back
Top