home *** CD-ROM | disk | FTP | other *** search
- if(eval("/container:klik") == "1")
- {
- call("rand");
- klik = eval("/container:klik");
- }
- else
- {
- klik = eval("/container:klik");
- bit = "0";
- while(bit == "0")
- {
- flag = "0";
- call("rand");
- set("/container:choice" add klik,z add x);
- cntr = "1";
- while(cntr < klik)
- {
- trace(eval("/container:choice" add cntr));
- if(eval("/container:choice" add cntr) eq eval("/container:choice" add klik))
- {
- flag = "1";
- trace("dupe found");
- }
- cntr += "1";
- }
- if(flag == "1")
- {
- bit = "0";
- }
- else
- {
- bit = "1";
- }
- }
- }
- set("/container:choice" add klik,z add x);
- count = "1";
- raak = "0";
- while("5" >= count)
- {
- if(z add x eq eval("/ship" add count add ":plek"))
- {
- raak = "1";
- set("/container:found",eval("/container:found") + "1");
- trace(eval("/container:found"));
- if(eval("/container:found") == "5")
- {
- tellTarget("/")
- {
- gotoAndStop("verloren");
- }
- }
- tellTarget("/ship" add count)
- {
- gotoAndPlay(3);
- }
- }
- count += "1";
- }
- if(raak == "0")
- {
- tellTarget("/" add z add x)
- {
- gotoAndPlay(3);
- }
- }
- tellTarget("/schild")
- {
- gotoAndStop(1);
- }
- stop();
-