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

Player can only have 1 food

Status
Not open for further replies.
Level 5
Joined
Jul 25, 2008
Messages
155
Hello, I was wondering how to do so you can only have one hero in the game, and can't buy any additional ones.. Would appreciate some help :):thumbs_up:
 
Level 3
Joined
Dec 18, 2007
Messages
43
You can use some upgrade (for example "Hero") and set it to 1, then set all heros, that they need that upgrade. When player gets a hero set this to 0, so he cant buy more heros.

Also you can, when player gets a hero just Disable availability of other heros (Player - Set Trainig/Construction availability of unit)
 
Level 5
Joined
Jul 25, 2008
Messages
155
That player - set training/construction avaibility of unit doesn't make it unavailable to purchade further units, and I don't understand your upgrade thing either.
 
Level 3
Joined
Dec 18, 2007
Messages
43
In Object Editor create some upgrade and call it as you wish. Then make all heros need that upgrade. THen create trigger with map init event, where you set that ability to 1 level. When player gets a hero, set that ability for that player to 0
 
Level 5
Joined
Jul 25, 2008
Messages
155
Uh, how do I get this 'upgrade' when I don't have any units, and how do I remove the upgrade when I bought a hero?
 
Level 5
Joined
Jul 25, 2008
Messages
155
I found a much easier way, when you can do like this 'player - limit training of heroes'
 
Level 5
Joined
Jul 25, 2008
Messages
155
I know how to do it now, made a hero arena instead of taverns, so your wisp dissapears and cant take any more heroes after you selected one :)
 
Status
Not open for further replies.
Top