Skip to content
User Avatar
#1465
Auto-translated
Heroist
Is it possible to use the same name for an object ('druid1') and a variable (druid1 = 0) in a script? I did this with a druid, and now the console says "object 'druid1' does not exist or is not interactive." Is this the problem, or should I check the script?
Yes, you can. :) The error is most likely in the SetObjectEnabled function or a Trigger.

Added 1 minute ago
Oligarch
Is it possible to determine if a tile is occupied?
IsTilePassable(x, y, floor) returns:
1 - if not occupied
nil - if occupied

It considers water impassable by default.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4