http://forum.original-war.net/viewtopic.php?f=18&t=1425
Podobnie jak tam, chodzi o to, aby przyznać medal gdy jedna wartość jest równa drugiej. Niestety nie działa i nie wiem kompletnie czemu.
Code: Select all
begin
Am02pojazdy := FilterUnitsInArea(Am02Exit, [[f_side, 1],[f_engine, engine_solar], [f_ok]]);
Am02AmGroup2 := FilterUnitsInArea(Am02Exit, [[f_side, 1],[f_type, unit_human], [f_ok]]);
begin
if Am02pojazdy=Am02AmGroup2 then
begin
AddMedal('Am02Pojazdy', 1);
end
else
begin
AddMedal('Am02Pojazdy',-1);
end;
end;
end;
Code: Select all
FilterUnitsInArea(Am02Exit, [[f_side, 1],[f_type, unit_human], [f_ok]]);
Code: Select all
begin
if FilterUnitsInArea(Am02Exit, [[f_side, 1],[f_type, unit_human]]) = 5 then
begin
AddMedal('Am02Zywi', 1);
end
else
begin
AddMedal('Am02Zywi', -1);
end;
end;
Różnica z kodem żródłowym jest tylko w filtrowaniu all => area, więc teoretycznie powinno działać. Przy filtrowaniu arei nie filtruje w pojazdach/budynkach?