Hi all,
I'm actually making a map using a tavern to pick heroes; heroes can also be randommed via "-random" and repicked via "-repick". Each time you pick/random a hero, the hero disappears from the tavern via the GUI command "Neutral buildings - Remove unit-type from all marketplace".
The problem is, that if it works properly with any normal tavern, it won't work as soon as you put would it be only one (human, orc, undead, nightelf) hero in the tavern. It then does not remove heroes any more.
By the way, I experienced crashes (in fact, deconnections) when using "-random" followed by "-repick"; to random a hero, I choose one in an array, then remove the unit-type from the tavern, when repicking, I remove the unit and then add the unti-type to the tavern.
Does anyone have any clues to my problems?
Thanks.
I'm actually making a map using a tavern to pick heroes; heroes can also be randommed via "-random" and repicked via "-repick". Each time you pick/random a hero, the hero disappears from the tavern via the GUI command "Neutral buildings - Remove unit-type from all marketplace".
The problem is, that if it works properly with any normal tavern, it won't work as soon as you put would it be only one (human, orc, undead, nightelf) hero in the tavern. It then does not remove heroes any more.
By the way, I experienced crashes (in fact, deconnections) when using "-random" followed by "-repick"; to random a hero, I choose one in an array, then remove the unit-type from the tavern, when repicking, I remove the unit and then add the unti-type to the tavern.
Does anyone have any clues to my problems?
Thanks.