Skip to content
User Avatar
#4069
Auto-translated
temnyrizar

function AlaricSpec()
  while 1 do
    if KnownHeroSpell("Alaric", SPELL_HASTE) then
TeachHeroSpell("Alaric", SPELL_SLOW)
    end
  sleep(1)
  end
end

The function **Know**HeroSpell, not Known. The following code works, I checked it:
function AlaricSpec()
while 1 do
if KnowHeroSpell("Alaric", SPELL_HASTE) then
TeachHeroSpell("Alaric", SPELL_SLOW)
end
sleep(1)
end
end

startThread(AlaricSpec)

The "Trigger not found" error in the console is not related to this code. You probably have an error in the trigger somewhere earlier, which interrupts the further execution of the script - including Alaric's specialization. Look for where you made a mistake in the trigger name!

С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________