Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
New here? I'm Roha — want a quick tour?
function InitDungeonCreatures()
for i, mob in GetObjectNamesByType"CREATURE" do
local type = GetObjectArmySlotCreature(mob, 0)
if (type >= CREATURE_SCOUT and type <= CREATURE_BLACK_DRAGON) or (type >= CREATURE_STALKER and type <= CREATURE_RED_DRAGON) then
SetObjectEnabled(mob, nil)
Trigger(4, mob, "TouchDungeonCreature")
end
end
end
function TouchDundeonCreature(hero, monster)
if hero == "Dalom" then
SetMonsterCourageAndMood(monster, 1, 0, 0)
end
SetObjectEnabled(monster, 1)
Trigger(4, monster, nil)
sleep(1)
MakeHeroInteractWithObject(hero, monster)
end
How do I make it so that, for example, a Necromancer is on the map, and he is accompanied by skeletons and other nasty creatures?