Skip to content

Scripts for beginners.

User Avatar
#303
Auto-translated
Azgalor
BlueHeavenHero, try this:
spawn_angels = 0

function DefenderCreatureDeath()
      local boss_creatures = GetDefenderCreatures();
            if (length(boss_creatures) == 0) and stage == 1 then
                  if spawn_angels == 0 then
                              spawn_angels = 1
                              SummonCreature(DEFENDER, CREATURE_ANGEL, 250, 12, 2);
                        end
            end
end


Added 1 minute ago
HeroOfDestiny, did you add Ilfin to the reserve for the desired player?
Thank you for your help! I'll try testing it later.

Added 2 hours 37 minutes ago
By the way... How do I attach a combat script to a town?
And another question - how do I make the knight-defender of the castle cast a prayer at the beginning?

Added 2 hours 14 minutes ago
Good day. How do I make a certain function run after a video plays?

Мои карты:
Падший рыцарь
Сердце Хаоса

Мои моды:
Визуальные:
Изменение внешнего вида героев-некромантов
Существа-жители и кое-что по мелочи в городах Ордена Порядка, Некрополиса и Инферно

NCF-существа:
Странствующие рыцари
Наемники

Statistics

Welcome our newest member: leyu