Code: Select all
local quebec = game:GetHex(8, 35)
if quebec.alliance.id == 1
and quebec.unit ~= nil
and unit.hex ~= nil
and unit.hex.x == 8
and unit.hex.y == 35
and britain.morale > 50
and unit.type == Unit.LAND then
unit.mp = 0
end
Code: Select all
local reval = game:GetHex(118, 10)
if reval.alliance.id == 1
and reval.unit ~= nil
and unit.hex ~= nil
and unit.hex.x == 118
and unit.hex.y == 10
and russia.morale > 30
and unit.type == Unit.LAND then
unit.mp = 0
end