Skip to content
User Avatar
#2338
Auto-translated
Aleha
I copied, I mean, wrote a script, and it's supposed to prevent the computer-controlled hero from moving, but it doesn't work. Where's the error?

EnableHeroAI("Necromancer", nil)

function new_day()
local day = GetDate(day)
if day == 1 then
DeployReserveHero("Necromancer", 29, 60, 1)
end
end

Trigger(NEW_DAY_TRIGGER, 'new_day')



Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Necro", "hire1")


Could the issue be with the REGION_ENTER_AND_STOP trigger?


EnableHeroAI("Necromancer", false) should be like this

Added 13 minutes later
Oops, not true, but false.
Кампании
К оружию!
______________________________
Нужна помощь:
Делать ролики
Писать скрипты

Statistics

Welcome our newest member: artem

Users Online 2 users 1618 guests