Skip to content

Current questions and answers regarding the map editor.

User Avatar
#4457
Auto-translated
Xillinx
How can I make it so that in each castle on the map at the beginning of the game, there is a three-month increase in all creatures, and the player is given a certain amount of gold to buy an army?:smile45:

the point is that you need to set the number of creatures for hiring in the city's buildings
for example, for Necropolis, you need to specify the IDs of the unupgraded creatures

local q = 16; -- the desired number of creatures,
SetObjectDwellingCreatures(town,creature_id, q)

gold - using the function SetPlayerResource(PLAYER_1,GOLD, 10000)


Added 4 minutes later
[/U]
FanatHoMM
Friends, is it possible to make it so that after a hero dies, he immediately appears in the tavern of the player to whom he belonged? And another question: is it possible to make the Stone of Knowledge give more than 1000 experience?

1) MakeHeroReturnToTavernAfterDeath(heroname, true, 1);
2) only with scripts
Мои карты

Возрождённый v 1.5 (обновление от 25/09/2016) :smile24:

готовится продолжение.

Великая Пустыня ( 25%) - про Маркела
Тьма над Иролланом (0%) - про Николаса

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)