Skip to content

Current questions and answers regarding the map editor.

User Avatar
#5719
Auto-translated
LumenCordis
Good afternoon, please tell me how to set the maximum level for heroes, how to make it so that heroes can live without a castle, and how to make it so that a hero starts with, for example, level 15, etc.

Hi)

1. Map Properties - in the window that opens, check the "Restrict hero level to" box and select the maximum level on the map.

2. In the map properties on the left, scroll down to the Objectives line, expand it, and go to Primary. Then, set all the DieInWeekWithoutTowns lines to false.

3. Depending on how you want to do it, you can set the hero to level 15 directly in the hero's properties (you need to specify the amount of experience he will have at the start), then when you start the map, your hero will be level 15 but without any upgrades, i.e., as if he were a level 1 hero. Otherwise, you can write a script in the map to give experience up to level 15. You can find a list of the required amount of experience for each level in the developer manuals (in your case, level 15 requires 34141 experience points), or you can do it a little more complicated - write a function with LevelUpHero with a loop of 15 times. But I think GiveExp(heroName, 34141) in the map script will be enough for the first time.