Skip to content

Creating your own hero.

User Avatar
#149
Auto-translated
}{0TT@6bI4
Or use scripts, but this will only work within the map. Attach the HERO_LEVELUP_TRIGGER, and in the function it triggers, add a check for divisibility by three (Level+1), and if it's true, increase the hero's knowledge by 1. But if you want to create a hero for the game as a whole, then yes, familiarize yourself with the principles of how game mechanics work in NHF.
No, I was interested in creating a specialization strictly for a single scenario. Thank you, I'll try.

Added 23 minutes later
}{0TT@6bI4
Or use scripts, but this will only work within the map. Attach the HERO_LEVELUP_TRIGGER, and in the function it triggers, add a check for divisibility by three (Level+1), and if it's true, increase the hero's knowledge by 1. But if you want to create a hero for the game as a whole, then yes, familiarize yourself with the principles of how game mechanics work in NHF.
Could you tell me the symbol for checking the remainder of a division? % doesn't work; I don't know how it's implemented in LUA

Statistics

Welcome our newest member: wayal