Goto https://www.stucuk.netGoto https://www.atlanticaonlinewiki.comGoto https://www.game-requirements.com


Menu


It is currently Mon Oct 23, 2017 9:49 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: SAIL Function SeeList problem
PostPosted: Fri May 20, 2011 3:23 pm 
Offline
Soldier level 0
Soldier level 0
User avatar

Joined: Thu May 19, 2011 12:48 pm
Posts: 6
I have problem with this code. Nothing results.

Code:
export function SeeList(side, units);
var un;
begin
  result:=[];

  for un in units do
    if See(side, un) then
      result:=result^un;
end;
              export jazda;
       var uss;
function Seen;
begin
  uss:=FilterAllUnits([[f_side, 3]]);
  if SeeList(1, uss) then
  begin
      enable;
    uc_side=1;
hc_class=class_mechanic;
hc_skills=[0,0,3,2];
uc_nation=nation_american;
s1=createHuman;
s2=createHuman;
s3=createHuman;
s4=createHuman;
 uc_side=1;
vc_chassis=us_medium_tracked;
vc_engine=engine_combustion;
vc_control=control_manual;
vc_weapon=us_double_gun;
h1=CreateVehicle;
h2=CreateVehicle;
h3=CreateVehicle;
h4=CreateVehicle;
PlaceUnitArea(h1,area06a,false);
PlaceUnitArea(h2,area06a,false);
PlaceUnitArea(h3,area06a,false);
PlaceUnitArea(h4,area06a,false);
PlaceHumanInUnit(s1,h1);
PlaceHumanInUnit(s2,h2);
PlaceHumanInUnit(s3,h3);
PlaceHumanInUnit(s4,h4);
AddComAgressiveMove([s1,s2,s3,s4],95,18);
AddComAttackUnit([s1,s2,s3,s4],sklad);
  end;
end;


Top
 Profile  
 
 Post subject: Re: SAIL Function SeeList problem
PostPosted: Fri May 20, 2011 4:04 pm 
Offline
Original-War.Net Owner
Original-War.Net Owner
User avatar

Joined: Wed Jan 25, 2006 10:21 am
Posts: 2786
Location: Poland, Białystok
You must put it in every if you want it to work.


Top
 Profile  
 
 Post subject: Re: SAIL Function SeeList problem
PostPosted: Fri May 20, 2011 4:26 pm 
Offline
Soldier level 0
Soldier level 0
User avatar

Joined: Thu May 19, 2011 12:48 pm
Posts: 6
Ouch I forgot. For 5 minutes I edit post

// ehh doesn't work on two ways

"every 0$1 do" and "every 0$1 MARKED 01"


Top
 Profile  
 
 Post subject: Re: SAIL Function SeeList problem
PostPosted: Fri May 20, 2011 5:08 pm 
Offline
Original-War.Net Owner
Original-War.Net Owner
User avatar

Joined: Wed Jan 25, 2006 10:21 am
Posts: 2786
Location: Poland, Białystok
Code:
every 0$1 trigger SeeList(1, FilterAllUnits([[f_side, 3]])) do
begin
  uc_side=1;
  hc_class=class_mechanic;
  hc_skills=[0,0,3,2];
  uc_nation=nation_american;
  s1=createHuman;
  s2=createHuman;
  s3=createHuman;
  s4=createHuman;
  uc_side=1;
  vc_chassis=us_medium_tracked;
  vc_engine=engine_combustion;
  vc_control=control_manual;
  vc_weapon=us_double_gun;
  h1=CreateVehicle;
  h2=CreateVehicle;
  h3=CreateVehicle;
  h4=CreateVehicle;
  PlaceUnitArea(h1,area06a,false);
  PlaceUnitArea(h2,area06a,false);
  PlaceUnitArea(h3,area06a,false);
  PlaceUnitArea(h4,area06a,false);
  PlaceHumanInUnit(s1,h1);
  PlaceHumanInUnit(s2,h2);
  PlaceHumanInUnit(s3,h3);
  PlaceHumanInUnit(s4,h4);
  AddComAgressiveMove([s1,s2,s3,s4],95,18);
  AddComAttackUnit([s1,s2,s3,s4],sklad);
end;


Top
 Profile  
 
 Post subject: Re: SAIL Function SeeList problem
PostPosted: Fri May 20, 2011 5:28 pm 
Offline
Moderator
Moderator
User avatar

Joined: Fri Jan 13, 2006 6:20 pm
Posts: 2325
Location: Argentina
Radzio wrote:
Code:
every 0$1 trigger SeeList(1, FilterAllUnits([[f_side, 3]])) do



Why you didn't place *DO* after the trigger?

// I did.

You cheater, you did it now.

_________________
-Aleph.

THE Very active person

"You can only do well at something if you put the time in. Doesn't matter what subject it is. You can't make a master piece over night."
Wise man Stu-


Top
 Profile  
 
 Post subject: Re: SAIL Function SeeList problem
PostPosted: Sat May 21, 2011 12:38 pm 
Offline
Soldier level 0
Soldier level 0
User avatar

Joined: Thu May 19, 2011 12:48 pm
Posts: 6
Thank you Radzio its good


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Original War is an RTS / RPG game by Altar Games
Original War Support is not part of Altar Games but is maintaining Original War for Altar Games

Privacy Policy