This is a factional rule which give these benefits to the faction having it, when an enemy take over a region with structures (only, countryside don't trigger it, code limitation for now)
SupplyLossPercent: A % loss of supply and ammo which will be burned before the opponent take it. The loss is calculated as follow:
100 - (Dice(PercentSupplyLoss div 2) + PercentSupplyLoss div 2)
Ex1: 80%. Means that between 40 and 80% of the supply is lost.
Ex2: 120: Means that 60 and 120% of the supply is lost, limited to 100%: it means that half of the time it will be 100% though.
PercentPillageChance: The % chance that the region is pillaged.
PercentDepotBurn: % chance that a depot, any level is burnt instead of being captured.
PercentFortBurn: % chance that a fort of level 1 only is burnt instead of being captured.
PercentVillageBurn: % chance that a city of level 1 only is burnt instead of being captured. (Note: Redoubt in NCP are in truth city of level 1)
Rafiki Helper for the Wiki:
Code: Select all
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// SET SCORCH EARTH INFOS
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function TScriptEngine.SetScorchEarthInfos(Params : TStringList) : integer;
begin
Result := 0;
if not (Params.Count in [1, 9]) then
begin
Inc(Result);
Log(['=> SetScorchEarthInfos, Syntax is either SetScorchEarthInfos = SupplyLossPercent|PillageChance|DepotBurnChance|FortBurnChance|VillageBurnChance|PlaceHolder1|PlaceHolder2|PlaceHolder3|PlaceHolder4 OR SetScorchEarthInfos = NULL']);
Exit;
end;
if cuFaction = nil then
begin
Log(['=> SetScorchEarthInfos command, no faction selected']);
Inc(Result);
Exit;
end;
if Params.Count = 1 then
cuFaction.SetScorchEarthInfos(0, 0, 0, 0, 0)
else
cuFaction.SetScorchEarthInfos(STI(Params[1]), STI(Params[2]), STI(Params[3]), STI(Params[4]), STI(Params[5]));
Log(['SetScorchEarthInfos', cuFaction.Name, 'SupplyLossPercent:', Params[1], 'PillageChance:', Params[2], 'DepotBurnChance:', Params[3], 'FortBurnChance:', Params[4], 'VillageBurnChance:', Params[5]]);
end;