Skip to content
#993
Auto-translated
r=random(5)

function cr()

if IsHeroAlive('Sun')
then
OpenCircleFog(r,r,0,10,PLAYER_1)
OpenCircleFog(0,0,0,9999,PLAYER_1)
end;
end;
Trigger(NEW_DAY_TRIGGER,'cr')

This script is supposed to reveal a random part of the map every day, as long as the hero Sun is alive (I'm creating a map, and this is one of the main new characters created from scratch), but it doesn't work:mad: :confused:!

Added 3 minutes later
Please tell me why. Otherwise, I won't be able to sleep peacefully (I've cured my insomnia:), I don't want to suffer again:().