Skip to content
User Avatar
#2950
Auto-translated
Jewill

UPD: It stopped working completely. It's simple, but the creatures are given only upon the first level up, and nothing happens on subsequent level ups. What's the mistake?
function a()
AddHeroCreatures("Sarge",CREATURE_ARCHER,20);
Trigger(HERO_LEVELUP_TRIGGER,"Sarge",nil)
end;
Trigger(HERO_LEVELUP_TRIGGER,"Sarge","a")
Trigger(HERO_LEVELUP_TRIGGER,"Sarge",nil)
This line resets the trigger, which is why it only runs once and then disables itself. Just remove it, and it will work every time the hero levels up.

Statistics

Welcome our newest member: artem

Users Online 2 users 1491 guests