Skip to content

Current questions and answers regarding the map editor.

User Avatar
#1443
Auto-translated

StartCombat(hero, "Kha-Beleth", , nil, "combatResult")

function combatResult(hero, isWinner)
if isWinner then
SetPlayerResource(PLAYER_1, GOLD, GetPlayerResource(PLAYER_1, GOLD) + 30000);
end;
end;
The StartCombat function needs to be placed within a function that triggers when the hero touches an object.