HeroistДобавлено через 1 минуту
Ну, чтобы после боя с героем 'Berein', в случае, если он таки победил, узнавалось число погибших существ врага и давалось ему в количестве 100% отборных костяшек

Trigger( COMBAT_RESULTS_TRIGGER, "combat_results" )
function combat_results(c)
local we = -1
if GetSavedCombatArmyPlayer(c, 1) == PLAYER_1 then we = 1 end
if GetSavedCombatArmyPlayer(c, 0) == PLAYER_1 then we = 0 end
if we ~= -1 then
local they = 1 - we
if GetSavedCombatArmyHero(c,we) == "Berein" then
local stackscount = GetSavedCombatArmyCreaturesCount(c, they)
for i=0,stackscount-1 do
local creature, creaturescount, died = GetSavedCombatArmyCreatureInfo(c, they, i)
if died > 0 then
AddHeroCreatures('Berein', 29, died)
end
end
end
end
end