Skip to content
#519
Auto-translated
KioM
I don't know, it needs to be tested, tried out. I tried the method described above, maybe there's an easier way.

Added after 7 hours and 14 minutes
Tactical scripts: I encountered a problem, I'm trying to make a spell work on all the hero's creatures at once. I select the creatures using GetCreatures(side), load the data into the "creatures" variable, and use it to target the final target:
for i = 0, length(creatures)-1 then
UnitCastAimedSpell(GetHero(side), spell_id, creatures);
end;

As a result, the spell is cast on only part of the creatures... what am I doing wrong? Maybe someone has successfully done something similar...

Added after 2 minutes
I assume that if a creature is immune to the spell being used, the script will give an error. Or maybe there isn't enough mana, for example.
It seems that if a creature is immune to the spell being used, the script will give an error. Or maybe there isn't enough mana, for example.
Check out the map 'Reconquista', I don't remember the author - it has a very large and fully functional combat script.

Statistics

Welcome our newest member: leyu