Auto-translated
"It seemed to work fine for me."
Here, it's hard to say; the problem could have been in the previous part of the script. In general, there were more than enough bugs related to the script on this map.
As confirmation that the `if` statement can be completed in the middle of the script, here's a snippet from the script of that same map:
```
function Urgashs_help()
if flag == 1 then
if GetDate(DAY) == 2 then
AddObjectCreatures('Oddrema', CREATURE_DEVIL, 3)
elseif GetDate(DAY) == 3 then
AddObjectCreatures('Oddrema', 18 , 250)
end;
elseif GetDate(DAY) == 4 then
AddObjectCreatures('Oddrema', 22, 150)
AddObjectCreatures('Maeve', 2, 300)
AddObjectCreatures('Maeve', 4, 150)
AddObjectCreatures('Maeve', 6, 100)
AddObjectCreatures('Maeve',8, 50)
AddObjectCreatures('Maeve',110, 25)
AddObjectCreatures('Maeve',12, 25)
AddObjectCreatures('Maeve',13, 25)
end;
end;
Trigger(NEW_DAY_TRIGGER, 'Urgashs_help')
```
GnomKRAG
Could you please explain what you meant?
Sincerely.
Мои карты:
SinglePlayer: Выбор Зехира
Падение Стедвика(pre-release)
Готовится: Зима Титанов, Столетняя война
SinglePlayer: Выбор Зехира
Падение Стедвика(pre-release)
Готовится: Зима Титанов, Столетняя война