Skip to content

Current questions and answers regarding the map editor.

#901
Auto-translated
Regarding your specific goal, I recommend consulting with more experienced mapmakers; I'm not very good with scripts, but never mind, let's take a look.
Question: Do you play Heroes of Might and Magic? The army compositions and overall mechanics are very similar =).
The script for giving creatures based on level seems not too complicated. It's done with the following commands:
AddHeroCreatures('hero_name', CREATURE_creature_name, number_of_creatures)
RemoveHeroCreatures('hero_name', CREATURE_creature_name, number_of_creatures)
while 1 do
if/elseif
StartThread
Here's another problem – restoring creatures after a battle.
Comrade Duncan, I advise you not to rely on others to do it for you, but to try yourself – you have all the cards in your hands.
But for now, I'll try to do something myself.

So, here's the deal. Now I have the following questions:
1) Question: What is the animName for the animation of opening the castle gates? I've looked everywhere, but I can't find it.
2) In connection with the problem of restoring creatures, is it possible to make it so that after a battle, the creatures are replenished to a specific value, depending on the hero's level?
Sincerely.
Мои карты:
SinglePlayer: Выбор Зехира
Падение Стедвика(pre-release)
Готовится: Зима Титанов, Столетняя война