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

Random hero picker

Status
Not open for further replies.
Level 1
Joined
Nov 5, 2020
Messages
4
Greetings!
I'm working on a random hero command, and I've been following the basic hero tavern guide here https://world-editor-tutorials.thehelper.net/herotavern.php

Currently working on putting all the heroes into an array. I totally understand the logic that it should be something like this
JASS:
Set VariableSet HeroType[1] = Archmage
Set VariableSet HeroType[2] = Paladin

However when it comes to actually using WC3 editor, I fail to understand how i set the value of the array to the specific hero? What function should i choose when defining value, that allows me to specify a specific unit?
I've attatched a screenshot that shows what i mean
1689945326608.png
 
Status
Not open for further replies.
Top