Skip to content
User Avatar
#2702
Auto-translated
RedHeavenHero
1. The log is not accessible to scripts.
2. The amount of mana spent can be tracked using the GetUnitManaPoints function.
3. Indirectly, it is possible to determine how many creatures a hero killed with a particular spell (it will be difficult to identify the spell itself), by measuring the mana and the number of creatures in each stack before and after casting the spell.
So, something like, if the hero's mana decreases, check the enemy stacks?

I had an idea to identify a spell, for example, by extracting its presence in the hero's spellbook before the battle and analytically calculating, with adjustments for SP and bonuses from schools, how much damage it should deal. Then, simply compare, and if the amount of mana spent and the damage dealt match, record it. What do you think, could it work?
The only problem is accounting for resistance, and while it's possible to analyze creatures, it's unclear how to deal with hero bonuses or artifact bonuses.:smile32:

Statistics

Welcome our newest member: artem