Author: RiderWolfRiderWolf wrote:Lepiej zrób funkcję SetMedals; ze wszystkimi medalami. może wyglądać np takNa końcu dajeszCode: Select all
var filter, araby; export function SetMedals; begin AddMedal('MEDAL',1); begin filter:=FilterAllUnits([[f_side,2],[f_chassis,ar_light_trike]]); begin araby=FilterAllUnits([[f_side,2],[f_type,unit_human],[f_ok]]); if filter>=araby then begin AddMedal('vehicles',1) end else begin AddMedal('vehicles',-1); end; end; end; end;
Code: Select all
SetMedals; GiveMedals('Main'); RewardPeople(FilterAllUnits([[f_ok],[f_side,2],[f_type,unit_human]])); SaveCharacters(ziom,'ziom'); YouWin; end;
Powinno działać 1 kod jest skompilowany lepiej daj go na osobnej stronie a co do 2 to tam pozmieniaj na swoje potrzeby i dopisz end ile razy trzeba
Topic: http://forum.original-war.net/viewtopic.php?t=1335