Skip to content
#2349
Auto-translated
RobinMobin
I need the script to reset after the hero completes the task.
The script is as follows: SetRegionBlocked("Region", true, 1);
Read the documentation for this function and the meaning of each of the three parameters, and the question will answer itself.

Added 3 minutes later
Aleha
function new_day()
local day = GetDate(day)
if day == 1 then
DeployReserveHero("Necromancer", 29, 60, 1)
end
end

Trigger(NEW_DAY_TRIGGER, 'new_day')
The NEW_DAY_TRIGGER trigger does not work on day 1, only from the second day. Everything you want to execute at the start of the map can simply be written in the code without any functions:
DeployReserveHero("Necromancer", 29, 60, 1)

Statistics

Welcome our newest member: dodoD0D0

Users Online 2 users 1459 guests