• 🏆 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!

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