Skip to content

Current questions and answers regarding the map editor.

User Avatar
#5819
Auto-translated
Deff2420
Hello everyone, please tell me how I can create a bot (without installing mods) using the map editor, so that it has one hero, but can re-hire him if he is lost in the tavern (I assume that if I simply disable taverns in cities, his hero will be a one-time use hero, right?). I found a script called AllowHeroHiringByRaceForAI on page 355, but I don't know where to enter it. The goal is to create a map with a bot that has one (or a limited number of) heroes, but with the ability to revive him. I understand that prisons are also one-time hires.
Look for descriptions of these functions in the manual: AllowPlayerTavernRace(), AllowPlayerTavernHero(), MakeHeroReturnToTavernAfterDeath(). I warn you that the last function is a bit buggy, and it is quite possible that it will stop returning the hero to the tavern. Although, maybe it breaks if it needs to return more than 2 heroes? Who knows... But it often happens to me that the heroes that it should return to the hiring pool for the bot stop appearing in the taverns.

Added 49 seconds later
Рон54

I was looking for where this folder is, and accidentally gave the wrong NCF model to a creature, and before that, I broke a gnoll. Where is this folder located?
I don't understand, what "kutrubu"? What gnolls?

Всякое/карты:

Добавление недостающей музыки гномам