Auto-translated
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", 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?
Делаю кампанию "Последний Феникс"