Skip to content
#2701
Auto-translated
Kavalar
I am also interested in this question. How extensive are the capabilities of combat scripts? And is it possible to interact with the combat log in some way? For example, to track and record certain data during the battle in a variable (the amount of mana spent, or how much damage a specific spell dealt).
Is this even possible at the level of interpreted scripts? Or is all of this hidden without any possibility of interaction?
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 is unlikely that the spell itself can be determined) by measuring the mana and the number of creatures in each unit before and after casting the spell.

Statistics

Welcome our newest member: Emil