Pages

Wednesday, October 04, 2006

Hostages' movements

Here is the random event for the different hostages standing up and sitting down:
if RdmEvent=2 then begin // Event - Hostage 1 stands up
if (ImageHostage2.visible=false) or (ImageHostage3.visible=false) or (ImageHostage4.visible=false) then begin ImageHostage1.visible:=true; end;
end;
if RdmEvent=3 then begin // Event - Hostage 2 stands up
if (ImageHostage1.visible=false) or (ImageHostage3.visible=false) or (ImageHostage4.visible=false) then begin ImageHostage2.visible:=true; end;
end;
if RdmEvent=4 then begin // Event - Hostage 3 stands up
if (ImageHostage1.visible=false) or (ImageHostage3.visible=false) or (ImageHostage4.visible=false) then begin ImageHostage3.visible:=true; end;
end;
if RdmEvent=5 then begin // Event - Hostage 4 stands up
if (ImageHostage1.visible=false) or (ImageHostage2.visible=false) or (ImageHostage3.visible=false) then begin ImageHostage4.visible:=true; end;
end;
if RdmEvent=6 then begin // Event - Hostage 1 sits down
ImageHostage1.visible:=false;
end;
if RdmEvent=7 then begin // Event - Hostage 2 sits down
ImageHostage2.visible:=false;
end;
if RdmEvent=8 then begin // Event - Hostage 3 sits down
ImageHostage3.visible:=false;
end;
if RdmEvent=9 then begin // Event - Hostage 4 sits down
ImageHostage4.visible:=false;
end;


No comments:

Post a Comment