• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

random hero

Status
Not open for further replies.
Level 1
Joined
Sep 5, 2006
Messages
2
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!!! :)
 
Level 5
Joined
Aug 13, 2005
Messages
119
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!
 
Level 1
Joined
Oct 4, 2006
Messages
5
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.
Top