The bug with the treasure chest still exists: after killing all the hydras, nothing happens, meaning the "battle" continues. I don't know how critical it is without the amulet, but it's a shame.
I'm hearing about the treasure chest bug for the first time; it works for me.
Very strange.
The battle only ends when there are no hydras left, neither summoned nor regular.
Here's the script, in case you're interested.
defender_turn = 0;
attacker_turn = 0;
main_hydra = nil;
SummonCreature(DEFENDER, CREATURE_HYDRA, 5, 8, 4);
sleep(1);
SummonCreature(DEFENDER, CREATURE_HYDRA, 10, 8, 5);
sleep(1);
SummonCreature(DEFENDER, CREATURE_HYDRA, 5, 8, 7);
sleep(1);
hydra_quantity = 0
function Start()
EnableAutoFinish(nil) ;
local creatures = GetDefenderCreatures();
for i, creature in creatures do
if GetCreatureType ( creature) == CREATURE_CHAOS_HYDRA then
hydra_quantity = GetCreatureNumber ( creature);
end;
end;
end
function DefenderCreatureMove(sUnitname)
if GetCreatureType(sUnitname) == CREATURE_CHAOS_HYDRA then
print("Hydra!!!");
main_hydra = sUnitname;
hydra_dead = hydra_quantity - GetCreatureNumber(sUnitname) ;
hydra_quantity = GetCreatureNumber(sUnitname);
if (hydra_dead > 0) then
SummonCreature(DEFENDER, CREATURE_HYDRA, hydra_dead, GetUnitPosition (sUnitname) );
sleep(5);
SummonCreature(DEFENDER, CREATURE_HYDRA, hydra_dead, GetUnitPosition (sUnitname) );
sleep(5);
SummonCreature(DEFENDER, CREATURE_HYDRA, hydra_dead, GetUnitPosition (sUnitname) );
sleep(5);
defender_turn = defender_turn+1;
end;
end;
end
function DefenderCreatureDeath()
local defenders = GetDefenderCreatures();
if (length(defenders) == 0) then Finish(ATTACKER) end;
end
function AttackerCreatureDeath()
local attackers = GetAttackerCreatures();
if (length(attackers) == 0) then Finish(DEFENDER) end;
end
Возрождённый v 1.5 (обновление от 25/09/2016) :smile24:
готовится продолжение.
Великая Пустыня ( 25%) - про Маркела
Тьма над Иролланом (0%) - про Николаса
Мои моды (скорректированы мод на чумных энтов и циклопов зомби)