• 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.

Custom Hero

Status
Not open for further replies.

Abc

Abc

Level 5
Joined
Apr 7, 2005
Messages
143
I wanna make a triger so when people click on the ? they get a custom hero like in footmen frenzy.
 
Level 6
Joined
May 8, 2005
Messages
249
no... you make a custom hero, name it random. then make an array variable for the heros.
units sells unit
unit type of sold unit = random hero
create one variable(random number between one and number of heros defined) at xxx and face xxx.
also, define the variable:
hero1 = paladin
etc..
and make sure the array is large enuf to compensate for the heros.
i.e. if their are 12 heros, the array must be 12, and the random number is between 1 and 12.
your tutorial says nothing about random hero

edit: give the random hero the ? icon, so people will understand wat it is.
 
Level 5
Joined
Jul 31, 2004
Messages
108
I'm doing this off the top of my head

Events
Unit Purchases a unit
Conditions
Unit Type of Purchased unit = Random
Actions
Crete 1 Hero[Random Integer 1-10]at center of playable map area
Remove Unit Seleto

Thats it basically....

GL on all your random names!

Rember my name is Daemon and I was born 6/6/6

ps. My name isn't Daemon and I wasn't born 6/6/6
 
Level 5
Joined
Jul 31, 2004
Messages
108
I'm doing this off the top of my head

Events
Unit Purchases a unit
Conditions
Unit Type of Purchased unit = Random
Actions
Crete 1 Hero[Random Integer 1-10]at center of playable map area
Remove Unit Seleto

Thats it basically....

GL on all your random names!

Rember my name is Daemon and I was born 6/6/6

ps. My name isn't Daemon and I wasn't born 6/6/6
 
Status
Not open for further replies.
Top