Advertisement
plirof2

ZX CSSCGC Adventuron TopGun2 -ASCIIairccarrier

Jun 1st, 2022 (edited)
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //## https://adventuron.io/classroom/
  2. //# https://adventuron.io/documentation/
  3. /*
  4. // TopGun2_untitled_20220601_2113_RC01.zip
  5. //RC5b - aircarrier fix,bmb9,nuke aircarrier,throw rock
  6. //https://tableconvert.com/ascii-generator
  7. //get banana,rock destroy/create banana
  8. //https://onlinetexttools.com/add-text-prefix
  9. //https://onlinetexttools.com/escape-text
  10. //In TEST.DSF replace & with \\
  11. //
  12.  
  13. +───+───+───+───+───+───+
  14. |   | 1 | 2 | 3 | 4 | 5 |
  15. +───+───+───+───+───+───+
  16. | 1 | B |   |coo|   |   |
  17. +───+───+───+───+───+───+
  18. | 2 |   |ban|   |   |nar|
  19. +───+───+───+───+───+───+
  20. | 3 |   |ton|   |   |   |
  21. +───+───+───+───+───+───+
  22. | 4 |fij|   |   |Air|   |
  23. +───+───+───+───+───+───+
  24. | 5 |   |jav|   |KK |Enemy Base |
  25. +───+───+───+───+───+───+───+
  26.  
  27.  N
  28. W E
  29.  S
  30.  
  31.    vending_machine : scenery "a vending maching ({coins_in_vending_machine} / 3)"   start_at = "my_location" ;
  32.  
  33. */
  34.  
  35. start_at = loc_1_1base
  36.  
  37. /* loading_screen = topgun2_logo_img3 */
  38.  
  39. themes {
  40. // red: #f00 /Magenta #f06 , Green: #0f0 , Blue: #00f /#10f , white #fff , Black #000
  41. // : set_theme "green";
  42. // 0 – black 1 – blue 2 – red 3 – magenta 4 – green 5 – cyan 6 – yellow 7 – white
  43.  
  44.    my_theme : theme {
  45.       theme_settings {
  46.         # layout = D X O
  47.       }
  48.       colors {
  49.          treasure_pen     = #r
  50.          pen              = 7
  51.          paper            = #000        
  52.          status_bar_paper = #30e
  53.          status_bar_pen   = #fff
  54.       }
  55.    }
  56.  
  57.    red : theme {
  58.       colors {
  59.          pen              = 2
  60.          paper            = #000        
  61.       }
  62.    }
  63.  
  64.    white : theme {
  65.       colors {
  66.          pen              = 7
  67.          paper            = #000        
  68.       }
  69.    }
  70.  
  71.    
  72.    green : theme {
  73.       colors {
  74.          pen              = 4
  75.          paper            = #000        
  76.       }
  77.    }  
  78.    
  79.    blue : theme {
  80.       colors {
  81.          pen              = 1
  82.          paper            = #000        
  83.       }
  84.    }  
  85.  
  86.    cyan : theme {
  87.       colors {
  88.          pen              = 5
  89.          paper            = #000        
  90.       }
  91.    }
  92.  
  93.    yellow : theme {
  94.       colors {
  95.          pen              = 6
  96.          paper            = #000        
  97.       }
  98.    }
  99.    
  100.    magenta : theme {
  101.       colors {
  102.          pen              = 3
  103.          paper            = #000        
  104.       }
  105.    }    
  106.    
  107. }
  108.  
  109. ## Defines locations in the world
  110.  
  111. locations {
  112.  
  113.    lakeside      : location "You are by the side of a beautiful lake." ;
  114.    outside_cave  : location "You are outside a cave. The entrance lies north." ;
  115.    treasure_room : location "You are in a room of treasures." ;
  116.    
  117.    
  118.    
  119.    loc_1_1base : location "You fly over your Base Island."  /* graphic="topgun2_logo_img3" */; //1,1
  120.    loc_1_3cook : location "You fly over Cook Island.   "; //1,3
  121.    loc_3_2tonga : location "You fly over Tonga Island." /*  graphic="su35a" */;
  122.    loc_2_5narau : location "You fly over Narau Island.";
  123.    loc_4_1fiji : location "You fly over Fiji Islands." /* graphic="eurofighter1" */;
  124.    loc_5_2java : location "You fly over Java Islands.";  
  125.    loc5_5boss    : location "Mountain Boss Base.";  
  126.    loc_5_1       :location  "Sea" ;
  127.    loc_5_3       :location  "Mountain" ;
  128.    loc_5_4       :location  "Mountain" ;  
  129.    loc_4_2       :location  "Sea" ;
  130.    loc_4_3       :location  "Sea" ;
  131.    loc_4_4air    :location  "You are at a stategic spot in near the coast! " /* graphic="formation1" */;
  132.    loc_4_5       :location  "Mountain" ;//KingKong  
  133.    loc_3_1       :location  "Sea" ;
  134.    loc_3_3       :location  "Sea" ;  
  135.    loc_3_4       :location  "Sea" ;
  136.    loc_3_5       :location  "Sea" ;        
  137.    loc_2_1       :location  "Sea" ;
  138.    loc_2_2       :location  "Sea" ;  
  139.    loc_2_3       :location  "Sea" ;  
  140.    loc_2_4       :location  "Sea" ;      
  141.    loc_1_2       :location  "Sea" /*graphic="formation1" */ ;
  142.    loc_1_4       :location  "Sea" ;
  143.    loc_1_5       :location  "Sea" ;  
  144. }
  145.  
  146. # Defines things in the world (scenery cannot be carried)
  147.  
  148. objects {
  149.    apple          : object  "an apple" msg="Delicious." at = "lakeside";
  150.    troll          : scenery "an enormous troll"  at = "outside_cave" msg="Hungry.";
  151.  
  152.       //should put it at "loc_3_4"  
  153.    //rocket : object "a rocket" at = "loc_1_4" ;
  154.  
  155.    //should give it to king kong
  156.    banana        : object "a banana"  msg="Maybe you will need it.";
  157.    bana1        : object "a banana"  at = "loc_2_2" msg="Maybe you will need it." weight="0";
  158.  
  159.    rock1        : object "a big rock"  at = "loc_2_2" msg="Maybe you will need it.";
  160.    rock        : object "a big rock"  msg="Maybe you will need it.";
  161.  
  162.  
  163.    //king kong gets rock gives nuke
  164.    nuke        : object "a nuclear warhead (nuke)"   weight="0" ;  
  165.  
  166.    king_kong          : scenery "King Kong.He seems angry or hungry. He guards the mountains. He likes throwing trees to airplanes!"  at = "loc_5_4" ;
  167.  
  168.    //should put it at "loc_5_4"
  169.    //bazooka        : object "a bazooka (not loaded)"  at = "loc_1_4" msg="Maybe you will need it.";  
  170.  
  171.    //should in inventory "loc_5_4"
  172.    //loaded_bazooka        : object "a bazooka loaded and ready"  at = "loc_1_4" msg="Maybe you will need it.";
  173.  
  174.    //sword : object "a sword" at = "loc_1_4" ;
  175.  
  176.    
  177.    old01          : scenery "a formation containing 2 MKs 24 Spitfires , 1 Soviet Yakovlev Yak-3 , 2 P-47D Thunderbolts and a P-38J Lightning  "  at = "loc_1_2" msg="Ready to fire.";
  178.    
  179.    
  180.  
  181.    //loc_1_1base : location "You fly over Base Island."; //1,1
  182.    
  183.    //loc_1_3cook : location "You fly over Cook Island."; //1,3
  184.    sam1          : scenery "a SAM1 missile silo"  at = "loc_1_3cook" msg="Ready to fire.";  
  185.    sam2          : scenery "a SAM2 missile silo"  at = "loc_1_3cook" msg="Ready to fire.";  
  186.    pln1          : scenery "a Saab JAS 39E Gripen"  at = "loc_1_3cook" msg="Ready to fire." ;
  187.    
  188.    
  189.    
  190.    //loc_3_2tonga : location "You fly over Tonga Island.";
  191.    grn1          : scenery "a MR-SAM missile silo"  at = "loc_3_2tonga" msg="Ready to fire.";  
  192.    pln2          : scenery "a Sukhoi Su-35S"  at = "loc_3_2tonga" msg="Ready to fire.";
  193.    
  194.    //loc_2_5narau : location "You fly over Narau Island.";
  195.    grn2          : scenery "a Iron Dome missile silo"  at = "loc_2_5narau" msg="Ready to fire.";      
  196.    grn3          : scenery "a MEADS missile silo"  at = "loc_2_5narau" msg="Ready to fire.";  
  197.    pln7          : scenery "a Shenyang FC-31"  at = "loc_2_5narau" msg="Ready to fire.";  
  198.  
  199.    
  200.    //loc_4_1fiji : location "You fly over Fiji Islands.";
  201.    grn4          : scenery "a Aster 30 SAMP/T"  at = "loc_4_1fiji" msg="Ready to fire.";  
  202.    grn5          : scenery "a HQ-9 missile silo"  at = "loc_4_1fiji" msg="Ready to fire.";  
  203.    pln5          : scenery "a F-15EX Eagle II"  at = "loc_4_1fiji" msg="Ready to fire.";  
  204.    pln3          : scenery "a Eurofighter Typhoon"  at = "loc_4_1fiji" msg="Ready to fire.";
  205.  
  206.    
  207.    //loc_5_2java : location "You fly over Java Islands.";    
  208.    grn6          : scenery "a MIM-104 Patriot"  at = "loc_5_2java" msg="Ready to fire.";  
  209.    grn7          : scenery "a THAAD (Terminal High Altitude Area Defense) missile silo"  at = "loc_5_2java" msg="Ready to fire.";  
  210.    pln9          : scenery "a J-20"  at = "loc_5_2java" msg="Ready to fire.";  
  211.    
  212.    
  213.    //loc_4_4air
  214.    aircarrier          : scenery "A Huge Aircraft Carrier. It seems at least 3 times bigger that 'USS Gerald R Ford'! With a quick look you can estimate that this has Length of 1011m has a Displacement of 304,800 tons.You estimate that this would cost about $38.4 billion give or take a few pennies! "  at = "loc_4_4air" msg="Ready to fire.";  
  215.    pln4          : scenery "a Dassault Rafale"  at = "loc_4_4air" msg="Ready to fire.";  
  216.    pln6          : scenery "a Sukhoi Su-35S"  at = "loc_4_4air" msg="Ready to fire.";  
  217.    pln8          : scenery "a F-22 Raptor "  at = "loc_4_4air" msg="Ready to fire.";  
  218.    pln10          : scenery "a Sukhoi Su-57"  at = "loc_4_4air" msg="Ready to fire.";  
  219.    pln11          : scenery "a F-35 Lightning II"  at = "loc_4_4air" msg="Ready to fire.";
  220.    old02          : scenery "a formation containing 2 MKs 24 Spitfires , 1 Soviet Yakovlev Yak-3 , 2 P-47D Thunderbolts and a P-38J Lightning  "  at = "loc_4_4air" msg="Ready to fire.";
  221.    
  222.  
  223.    //loc5_5 Boss Base
  224.  
  225.    grn8          : scenery "a S-300VM (Antey-2500)"  at = "loc5_5boss" msg="Ready to fire.";  
  226.    grn9          : scenery "a S-400 Triumph"  at = "loc5_5boss" msg="Ready to fire.";  
  227.    grn10          : scenery "a S-500 Prometheus Range"  at = "loc5_5boss" msg="Ready to fire.";  
  228.    pln12          : scenery "a F-35 Lightning II"  at = "loc5_5boss" msg="Ready to fire.";
  229.    old03          : scenery "a formation containing 2 MKs 24 Spitfires , 1 Soviet Yakovlev Yak-3 , 2 P-47D Thunderbolts and a P-38J Lightning  "  at = "loc5_5boss" msg="Ready to fire.";
  230.  
  231.  
  232.    
  233.    tom_cruise          : scenery "Tom Cruise who was the master mind behind this and also is the bad guy and end boss!"  at = "loc5_5boss" ;  
  234.  
  235.    
  236.  
  237.    
  238.    bmb1          : object  "a bomb" msg="Delicious." at = "inventory";  
  239.    bmb2          : object  "a bomb" msg="Delicious." at = "inventory";  
  240.    bmb3          : object  "a bomb" msg="Delicious." at = "inventory";      
  241.    bmb4          : object  "a bomb" msg="Delicious." at = "inventory";  
  242.    bmb5          : object  "a bomb" msg="Delicious." at = "inventory";  
  243.    bmb6          : object  "a bomb" msg="Delicious." at = "inventory";  
  244.    bmb7          : object  "a bomb" msg="Delicious." at = "inventory";      
  245.    bmb8          : object  "a bomb" msg="Delicious." at = "inventory";      
  246.    bmb9          : object  "a bomb" msg="Delicious." at = "inventory";      
  247.    bmb10          : object  "a bomb" msg="Delicious." at = "inventory";      
  248.    bmb11          : object  "a bomb" msg="Delicious." at = "inventory";      
  249.    bmb12          : object  "a bomb" msg="Delicious." at = "inventory";      
  250.    bmb13          : object  "a bomb" msg="Delicious." at = "inventory";
  251.    msn1          : object  "a missile" msg="Delicious." at = "inventory";  
  252.    msn2          : object  "a missile" msg="Delicious." at = "inventory";
  253.    msn3          : object  "a missile" msg="Delicious." at = "inventory";
  254.    msn4          : object  "a missile" msg="Delicious." at = "inventory";    
  255.    msn5          : object  "a missile" msg="Delicious." at = "inventory";    
  256.    msn6          : object  "a missile" msg="Delicious." at = "inventory";    
  257.    msn7          : object  "a missile" msg="Delicious." at = "inventory";    
  258.    msn8          : object  "a missile" msg="Delicious." at = "inventory";    
  259.    msn9          : object  "a missile" msg="Delicious." at = "inventory";    
  260.    msn10          : object  "a missile" msg="Delicious." at = "inventory";    
  261.    msn11          : object  "a missile" msg="Delicious." at = "inventory";    
  262.    msn12          : object  "a missile" msg="Delicious." at = "inventory";    
  263.  
  264.    mso01          : object  "a missile" msg="Delicious." at = "inventory";
  265.    mso02          : object  "a missile" msg="Delicious." at = "inventory";  
  266.    mso03          : object  "a missile" msg="Delicious." at = "inventory";    
  267. }
  268.    
  269.  
  270. booleans {
  271.     sam1destroyed : boolean "false"; // False is the default
  272. }
  273.    
  274. integers {
  275.     msnion_goals : integer "0";
  276.     msnion : integer "1";
  277.     inventory_limit : integer "100" ;
  278. }
  279.  
  280. strings {
  281.    old01_description : string "a formation containing 2 MKs 24 Spitfires , 1 Soviet Yakovlev Yak-3 , 2 P-47D Thunderbolts and a P-38J Lightning  ";
  282. }
  283.  
  284.    
  285. connections {
  286.  
  287.    ## Connects locations together (bidirectional)
  288.    
  289.    from, direction, to = [
  290.      // lakeside,     north, outside_cave
  291.      // outside_cave, north, treasure_room,
  292.       //loc_1_1base , north, loc_1_3cook,
  293.      
  294.    loc_1_1base,east, loc_1_2,
  295.    loc_1_2,    east, loc_1_3cook,
  296.    loc_1_3cook,east ,loc_1_4,
  297.    loc_1_4,east,loc_1_5,
  298.  
  299.    loc_1_5, south, loc_2_5narau,
  300.    loc_2_5narau,west ,loc_2_4,    
  301.    loc_2_4,west,loc_2_3,  
  302.    loc_2_3,west,   loc_2_2,  
  303.    loc_2_2,   west,   loc_2_1,
  304.    loc_2_1,south,loc_3_1,
  305.    
  306.  
  307.  
  308.    
  309.    loc_3_1,east,loc_3_2tonga,
  310.    loc_3_2tonga,east,loc_3_3,  
  311.    loc_3_3, east,   loc_3_4,
  312.    //to bypass aircarrier
  313.    loc_3_3, south,   loc_4_3,
  314.    loc_3_4,east ,  loc_3_5,        
  315.  
  316.  
  317.  
  318.    //loc_3_5, south,loc_4_1fiji,
  319.    loc_3_5, south,loc_4_5,
  320.    loc_4_5,west,loc_4_4air,
  321.    loc_4_4air,west,loc_4_3,
  322.    loc_4_3,west,loc_4_2,
  323.    loc_4_2,west,loc_4_1fiji,
  324.    loc_4_4air,south,loc_5_4,  
  325.  
  326.  
  327.    loc_4_1fiji,south,loc_5_1,
  328.    loc_5_1,east,loc_5_2java,  
  329.    loc_5_2java,  east,   loc_5_3 ,
  330.    loc_5_3 ,east,loc_5_4,  
  331.    loc_5_4,east, loc5_5boss    
  332.  
  333.    ]
  334. }
  335.  
  336. barriers {
  337.  
  338.    ## Blocks Access To Cave Whilst Troll Exists (with message)
  339.    
  340.    block_cave : block {
  341.       location           = treasure_room
  342.       message            = The troll is guarding the cave.
  343.       block_when_exists  = troll
  344.       show_blocked_exit  = true
  345.    }
  346.  
  347.    block_5_5boss : block {
  348.       location           = loc5_5boss
  349.       message            = King Kong is  guarding the mountains!
  350.       block_when_exists  = king_kong
  351.       show_blocked_exit  = true
  352.    }
  353.  
  354.  
  355.    loc_2_5narau_block : block {
  356.       block_when_exists   = pln1
  357.       location            = loc_2_5narau
  358.       message             = You must destroy the other defences first!
  359.       show_blocked_exit  = true
  360.     }
  361.  
  362.    loc_3_2tonga_block : block {
  363.       block_when_exists   = pln7
  364.       location            = loc_3_2tonga
  365.       message             = You must destroy the other defences first!
  366.       show_blocked_exit  = true
  367.     }
  368.  
  369.  
  370.  
  371.    loc_4_1fiji_block : block {
  372.       block_when_exists   = pln2
  373.       location            = loc_4_1fiji
  374.       message             = You must destroy the other defences first!
  375.       show_blocked_exit  = true
  376.     }
  377.  
  378.    loc_5_2java_block : block {
  379.       block_when_exists   = pln5
  380.       location            = loc_5_2java
  381.       message             = You must destroy the other defences first!
  382.       show_blocked_exit  = true
  383.     }
  384.  
  385.    loc_4_4air_block : block {
  386.       block_when_exists   = pln9
  387.       location            = loc_4_4air
  388.       message             = You must destroy the other defences first!
  389.       show_blocked_exit  = true
  390.     }
  391.  
  392.    loc5_5boss_block : block {
  393.       block_when_exists   = aircarrier
  394.       location            = loc5_5boss
  395.       message             = You must clear the Aircraft Carrier Defences.To enter the main base.
  396.       show_blocked_exit  = true
  397.     }
  398.  
  399.    throneroom_block : block {
  400.       block_when_exists   = tom_cruise
  401.       location            = loc_1_1base
  402.       message             = You're ashamed to return to your home base before you kill EVERYONE and EVERYTHING in the final base!
  403.      show_blocked_exit  = true
  404.    }
  405.  
  406.  
  407.  
  408.  
  409. }
  410.  
  411. ## Print the objective when the game starts
  412.  
  413. on_startup {
  414.  
  415. : print " +-++-++-+ +-++-++-+ +-+" ;
  416. : print " |T  O  P| |G  U  N   2|" ;
  417. : print " +-++-++-+ +-++-++-+ +-+" ;
  418.  
  419. : print "MaveRick Dangerous !" ;
  420.  
  421.   : press_any_key ;
  422.   : clear_screen;
  423.   : set_theme "white";
  424.   : print "You are a flight instructor.";
  425.   : print "An unknown evil mastermind plans to fill the USA market with fake iPads. President and the admirals summoned you to help. You also must prove to the noob pilots that you are the best! Your Goal : Destroy All the Enemies!" ;
  426.   : set_theme "white";
  427.   : press_any_key ;
  428.   : print "Mission briefing:";  
  429.   : print "You will operate a highly automated drone manually. You can control it with the basic known commands! ";  
  430.   : press_any_key ;
  431.   : print "Mission briefing:";  
  432.   : print "We suspect enemy has many aircrafts that are protected by Ground to Air defence systems! Before you destroy a target you must destroy it\'s protectors!";  
  433.   : print "Good luck! Most of us here are counting on you! The other ones are in war room, designing \'Plan B\'.";    
  434.   : press_any_key ;
  435. }
  436.  
  437. ## Execute this every time a player moves or redescribes a location
  438.  
  439. on_describe {
  440.   : if (is_at "loc_1_1base" && !is_exists "pln12" ) {
  441.      : print "CONGRATULATIONS YOU KILLED EVERYONE. YOU WIN! YOU CAN RETURN HOME AND WAIT FOR TOP-GUN 3" ;
  442.      : print "The president reveals you a BIG secret! He says :" ;
  443.      : print "You can find the Update for -10D bathroom Design- in the Top Gun 2 48k tape!!!!" ;      
  444.      : win_game ;
  445.   }
  446.   : if (is_present "old01") {
  447.         : print "\n          --|--\n       *---o0o---*\n    --|-- \n*---o0o---* \n          --|--\n       *---o0o---*";
  448.   }
  449.  
  450.   : if (is_present "old02") {
  451.         : print "\n          --|--\n       *---o0o---*\n    --|-- \n*---o0o---* \n          --|--\n       *---o0o---*";
  452.   }  
  453.  
  454.   : if (is_present "old03") {
  455.         : print "\n          --|--\n       *---o0o---*\n    --|-- \n*---o0o---* \n          --|--\n       *---o0o---*";
  456.   }  
  457.  
  458.   : if (is_present "king_kong") {
  459.         : print "";
  460.   }
  461.  
  462.   : if (is_present "aircarrier") {
  463.        : print "    -----------\n     |--|-|--|-|\n   -|-----------|--\n  |o o o o o o o o/  \n   ---------------" ;
  464.   }
  465.  
  466.   : if (is_present "sam1" || is_present "grn3" || is_present "grn1" ) {
  467.      : print "   |\n   | |\n   | |\n  :| |:\n|:| |:|" ;
  468.   }
  469.  
  470.   // Ground
  471.   : if (is_present "sam2" || is_present "grn7" || is_present "grn2") {
  472.      : print "   |\n   | |\n   | |\n  :| |:\n|:| |:|" ;
  473.   }
  474.  
  475.   // Ground
  476.   //: if (is_present "grn3") {
  477. //      : print "   |\n   | |\n   | |\n  :| |:\n|:| |:|" ;
  478. //   }  
  479.   // Ground
  480.   : if (is_present "grn4" || is_present "grn8") {
  481.      : print "   |\n   | |\n   | |\n  :| |:\n|:| |:|" ;
  482.   }
  483.   : if (is_present "grn5") {
  484.      : print "   |\n   | |\n   | |\n  :| |:\n|:| |:|" ;
  485.   }
  486.   : if (is_present "grn6") {
  487.      : print "   |\n   | |\n   | |\n  :| |:\n|:| |:|" ;
  488.   }
  489.   : if (is_present "grn10") {
  490.      : print "   |\n   | |\n   | |\n  :| |:\n|:| |:|" ;
  491.   }
  492.   : if (is_present "grn9") {
  493.      : print "   |\n   | |\n   | |\n  :| |:\n|:| |:|" ;
  494.   }
  495.  
  496.   //Saab JAS 39E Grippen
  497.   : if (is_present "pln1") {
  498.      : print "        | | " ;
  499.      : print "    x---o8o---x  " ;
  500.   }
  501.   //Sukhoi Su 35S
  502.   : if (is_present "pln2") {
  503.      : print "        | | " ;
  504.      : print "    x---o8o---x  " ;
  505.   }
  506.   //Shenyang FC-31
  507.   : if (is_present "pln7") {
  508.      : print "        | | " ;
  509.      : print "    x---o8o---x  " ;
  510.   }  
  511.  
  512.   //F-15EX Eagle II
  513.   : if (is_present "pln5") {
  514.      : print "        | | " ;
  515.      : print "    x---o8o---x  " ;
  516.   }
  517.   //Eurofighter Typhoon
  518.   : if (is_present "pln3") {
  519.      : print "        | | " ;
  520.      : print "    x---o8o---x  " ;
  521.   }  
  522.  
  523.   //J-20
  524.   : if (is_present "pln9") {
  525.      : print "        | | " ;
  526.      : print "    x---o8o---x  " ;
  527.   }
  528.  
  529.   // Dassault Rafale , Sukhoi Su-35S,F-22 Raptor
  530.   : if (is_present "pln4" && is_present "pln6" && is_present "pln8"  ) {
  531.         : print "\n          --|--\n       *---o0o---*\n    --|-- \n*---o0o---* \n          --|--\n       *---o0o---*";
  532.   }
  533.  
  534.   //Sukhoi Su-57
  535.   : if (is_present "pln10") {
  536.      : print "        | | " ;
  537.      : print "    x---o8o---x  " ;
  538.   }
  539.  
  540.   //F-35 Lightning II
  541.   : if (is_present "pln11") {
  542.      : print "        | | " ;
  543.      : print "    x---o8o---x  " ;
  544.   }  
  545.  
  546.   // F-35 Lightning II
  547.   : if (is_present "pln12") {
  548.      : print "      --|--\n*---o--(.)--o---*" ;
  549.   }
  550.   //tom cruise
  551.   : if (is_present "tom_cruise") {
  552.      : print " XXXXX " ;
  553.      : print " -O-O- "  ;
  554.      : print "   | "  ;
  555.      : print "  --- "  ;
  556.   }
  557.  
  558. }
  559.  
  560. ## Test VERB NOUN that the player types and executes conditional actions
  561.  
  562. on_command {
  563.   : match "give apple"  {
  564.      : if (is_present "troll" && is_carried "apple") {
  565.         : print   "The troll eats the apple then wanders off." ;
  566.         : destroy "apple" ;
  567.         : destroy "troll" ;
  568.      }
  569.   }
  570.  
  571.   : match "get banana"  {
  572.      : if (is_present "bana1" ) {
  573.         : print   "You open the window and get the banana." ;
  574.         : destroy "bana1" ;
  575.         : create "banana" target="inventory";
  576.      }
  577.   }  
  578.  
  579.   : match "get rock"  {
  580.      : if (is_present "rock1" ) {
  581.         : print   "You open the window and get the rock." ;
  582.         : destroy "rock1" ;
  583.         : create "rock" target="inventory";
  584.      }
  585.   }
  586.  
  587.   : match "give banana;drop banana;throw banana"  {
  588.      : if (is_present "king_kong" && is_carried "banana") {
  589.         : print   "King Kong eats the banana waves goodbye and then wanders off." ;
  590.         : destroy "banana" ;
  591.         : destroy "king_kong" ;
  592.         : increment "msnion_goals";// sams=1
  593.         : print {("Score: "+msnion_goals+" ")};        
  594.      }
  595.   }  
  596.   : match "launch missile;fire missile;drop bomb"  {
  597.      : if (is_present "king_kong") {
  598.  
  599.         : print "You aim with your onboard super AI computer and fire. \nOne KK fart is enough to confuse the complex electronic sensors of your plane!!!";
  600.         : print "You see on screen a message:\n R-Tape Loading Error!!!";
  601.         //: set_integer var = "sams_destroyed"  value = "1";
  602.      }
  603.   }
  604.      
  605.  
  606.   : match "give rock;drop rock;throw rock"  {
  607.      : if (is_present "king_kong" && is_carried "rock"  && !is_carried "nuke") {
  608.         : print   "King Kong likes to play 'throw'.He throws the rock back at you. He seems to enjoy it. Now it is his turn: He throws something to you. It is a...Nuclear Warhead!!! You decide to keep the nuke!";
  609.         : create "nuke" target="inventory";
  610.         : increment "msnion_goals";// sams=1
  611.         : print {("Score: "+msnion_goals+" ")};        
  612.      }
  613.   }
  614.  
  615. // loc 1,2 // old01          : scenery "{old01_description}"  at = "loc_1_2" msg="Ready to fire.";
  616.   : match "launch missile;fire missile"  {
  617.      : if (is_at "loc_1_2" && is_present "old01" && is_carried "mso01") {
  618.  
  619.         : print "With one missile you destroy : a formation containing 2 MKs 24 Spitfires , 1 Soviet Yakovlev Yak-3 , 2 P-47D Thunderbolts and a P-38J Lightning  ";
  620.         : destroy "mso01" ;
  621.         : destroy "old01" ;
  622.         : increment "msnion_goals";// sams=1
  623.         : print {("Score: "+msnion_goals+" ")};
  624.         //: set_integer var = "sams_destroyed"  value = "1";
  625.      }
  626.   }
  627.  
  628.  
  629. //loc_1_3cook
  630.   : match "launch missile;fire missile"  {
  631.      : if (is_at "loc_1_3cook" && !is_present "sam2" && is_carried "msn1" ) {
  632.         : print   "Your missile destroys a Saab JAS 39E Gripen" ;
  633.         : destroy "msn1" ;
  634.         : destroy "pln1" ;
  635.         : increment "msnion_goals";// sams=1
  636.         : print {("Score: "+msnion_goals+" ")};
  637.        
  638.      }
  639.      
  640.   }
  641.  
  642.   : match "drop bomb"  {
  643.      : if (is_at "loc_1_3cook" &&  !is_beside "sam1" && is_present "sam2" && is_carried "bmb2" ) {
  644.         : print   "Your bomb destroys SAM Silo #2" ;
  645.         : destroy "bmb12" ;
  646.         : destroy "sam2" ;
  647.         : increment "msnion_goals";// sams=1
  648.         : print {("Score: "+msnion_goals+" ")};
  649.        
  650.      }
  651.      
  652.   }
  653.  
  654.   : match "drop bomb"  {
  655.      : if (is_at "loc_1_3cook" && is_present "sam1" && is_carried "bmb1") {
  656.         : print   "Your bomb destroys SAM Silo #1" ;
  657.         : destroy "bmb11" ;
  658.         : destroy "sam1" ;
  659.         : increment "msnion_goals";// sams=1
  660.         : print {("Score: "+msnion_goals+" ")};
  661.         //: set_integer var = "sams_destroyed"  value = "1";
  662.      }
  663.   }
  664.  
  665.   //loc_2_5narau : location "You fly over Narau Island.";
  666.  
  667.  
  668.   : match "launch missile;fire missile"  {
  669.      : if (is_at "loc_2_5narau" &&  !is_present "grn3" && is_carried "msn7" ) {
  670.         : print   "Your missile destroys a Shenyang FC-31" ;
  671.         : destroy "msn7" ;
  672.         : destroy "pln7" ;
  673.         : increment "msnion_goals";// sams=1
  674.         : print {("Score: "+msnion_goals+" ")};
  675.        
  676.      }
  677.      
  678.   }
  679.  
  680.   : match "drop bomb"  {
  681.      : if (is_at "loc_2_5narau" &&  !is_beside "grn2" && is_present "grn3" && is_carried "bmb3" ) {
  682.         : print   "Your bomb destroys a MEADS missile silo" ;
  683.         : destroy "bmb3" ;
  684.         : destroy "grn3" ;
  685.         : increment "msnion_goals";// sams=1
  686.         : print {("Score: "+msnion_goals+" ")};
  687.        
  688.      }
  689.      
  690.   }
  691.  
  692.   : match "drop bomb"  {
  693.      : if (is_at "loc_2_5narau" && is_present "grn2" && is_carried "bmb2") {
  694.         : print   "Your bomb destroys an Iron Dome missile silo" ;
  695.         : destroy "bmb2" ;
  696.         : destroy "grn2" ;
  697.         : increment "msnion_goals";// sams=1
  698.         : print {("Score: "+msnion_goals+" ")};
  699.         //: set_integer var = "sams_destroyed"  value = "1";
  700.      }
  701.   }
  702.  
  703.  
  704.  
  705.  
  706.   //loc_3_2tonga : location "You fly over Tonga Island.";
  707.  
  708.  
  709.   : match "launch missile;fire missile"  {
  710.      : if (is_at "loc_3_2tonga" &&  !is_present "grn1" && is_carried "msn2" ) {
  711.         : print   "Your missile destroys a Sukhoi Su-35S" ;
  712.         : destroy "msn2" ;
  713.         : destroy "pln2" ;
  714.         : increment "msnion_goals";// sams=1
  715.         : print {("Score: "+msnion_goals+" ")};
  716.        
  717.      }
  718.      
  719.   }
  720.  
  721.  
  722.   : match "drop bomb"  {
  723.      : if (is_at "loc_3_2tonga" && is_present "grn1" && is_carried "bmb1") {
  724.         : print   "Your bomb destroys a MR-SAM missile silo" ;
  725.         : destroy "grn1" ;
  726.         : destroy "bmb1" ;
  727.         : increment "msnion_goals";// sams=1
  728.         : print {("Score: "+msnion_goals+" ")};
  729.         //: set_integer var = "sams_destroyed"  value = "1";
  730.      }
  731.   }
  732.  
  733.  
  734.  
  735.  
  736.      //loc_4_1fiji : location "You fly over Fiji Islands.";
  737.  
  738.  
  739.   : match "launch missile;fire missile"  {
  740.      : if (is_at "loc_4_1fiji" &&  !is_present "pln3" && is_carried "msn5" ) {
  741.         : print   "Your missile destroys a F-15EX Eagle II" ;
  742.         : destroy "msn5" ;
  743.         : destroy "pln5" ;
  744.         : increment "msnion_goals";// sams=1
  745.         : print {("Score: "+msnion_goals+" ")};
  746.        
  747.      }
  748.      
  749.   }
  750.  
  751.   : match "launch missile;fire missile"  {
  752.      : if (is_at "loc_4_1fiji" &&  !is_present "grn4" && is_carried "msn3" ) {
  753.         : print   "Your missile destroys a Eurofighter Typhoon" ;
  754.         : destroy "msn3" ;
  755.         : destroy "pln3" ;
  756.         : increment "msnion_goals";// sams=1
  757.         : print {("Score: "+msnion_goals+" ")};
  758.        
  759.      }
  760.      
  761.   }
  762.  
  763.   : match "drop bomb"  {
  764.      : if (is_at "loc_4_1fiji" &&  !is_beside "grn4" && is_present "grn5" && is_carried "bmb5" ) {
  765.         : print   "Your bomb destroys a HQ-9 missile silo" ;
  766.         : destroy "bmb5" ;
  767.         : destroy "grn5" ;
  768.         : increment "msnion_goals";// sams=1
  769.         : print {("Score: "+msnion_goals+" ")};
  770.        
  771.      }
  772.      
  773.   }
  774.  
  775.   : match "drop bomb"  {
  776.      : if (is_at "loc_4_1fiji" && is_present "grn4" && is_carried "bmb4") {
  777.         : print   "Your bomb destroys a Aster 30 SAMP/T" ;
  778.         : destroy "bmb4" ;
  779.         : destroy "grn4" ;
  780.         : increment "msnion_goals";// sams=1
  781.         : print {("Score: "+msnion_goals+" ")};
  782.         //: set_integer var = "sams_destroyed"  value = "1";
  783.      }
  784.   }
  785.  
  786.   //loc_5_2java : location "You fly over Java Islands.";    
  787.  
  788.   : match "launch missile;fire missile"  {
  789.      : if (is_at "loc_5_2java" &&  !is_present "grn6" && is_carried "msn9" ) {
  790.         : print   "Your missile destroys a J-20" ;
  791.         : destroy "msn9" ;
  792.         : destroy "pln9" ;
  793.         : increment "msnion_goals";// sams=1
  794.         : print {("Score: "+msnion_goals+" ")};
  795.        
  796.      }
  797.      
  798.   }
  799.  
  800.   : match "drop bomb"  {
  801.      : if (is_at "loc_5_2java" &&  !is_beside "grn6" && is_present "grn7" && is_carried "bmb7" ) {
  802.         : print   "Your bomb destroys a THAAD (Terminal High Altitude Area Defense) missile silo" ;
  803.         : destroy "bmb7" ;
  804.         : destroy "grn7" ;
  805.         : increment "msnion_goals";// sams=1
  806.         : print {("Score: "+msnion_goals+" ")};
  807.        
  808.      }
  809.      
  810.   }
  811.  
  812.   : match "drop bomb"  {
  813.      : if (is_at "loc_5_2java" && is_present "grn6" && is_carried "bmb6") {
  814.         : print   "Your bomb destroys a MIM-104 Patriot" ;
  815.         : destroy "bmb6" ;
  816.         : destroy "grn6" ;
  817.         : increment "msnion_goals";// sams=1
  818.         : print {("Score: "+msnion_goals+" ")};
  819.         //: set_integer var = "sams_destroyed"  value = "1";
  820.      }
  821.   }
  822.  
  823.   //loc_4_4air craft carrier
  824.  
  825.   : match "drop nuke;fire nuke"  {
  826.      : if (is_at "loc_4_4air" && is_carried "nuke" ) {
  827.         : print   "You always wanted to see that a nuke can do. You drop the nuke and everything is destroyed!!!! You wish you had another nuke!" ;
  828.         : destroy "nuke" ;
  829. //         : destroy "msn4" ;
  830. //         : destroy "msn6" ;
  831. //         : destroy "msn8" ;        
  832. //         : destroy "msn10" ;
  833. //         : destroy "msn11" ;
  834.         : destroy "pln8" ;
  835.         : destroy "pln10" ;
  836.         : destroy "pln11" ;
  837.         : destroy "pln6" ;
  838.         : destroy "pln4" ;
  839.         : destroy "old02" ;        
  840.         : destroy "aircarrier" ;
  841.  
  842.         : increment "msnion_goals";// sams=1
  843.         : increment "msnion_goals";// sams=1
  844.         : increment "msnion_goals";// sams=1
  845.         : increment "msnion_goals";// sams=1
  846.         : increment "msnion_goals";// sams=1
  847.         : increment "msnion_goals";// sams=1        
  848.         : print {("Score: "+msnion_goals+" ")};
  849.      }
  850.   }
  851.  
  852.   : match "drop bomb"  { //Destroy aircraft
  853.      : if (is_at "loc_4_4air" &&  !is_present "pln11" && is_carried "bmb13" ) {
  854.         : print   "Your missile destroys the Air Carrier" ;
  855.         : destroy "aircarrier" ;
  856.         : destroy "bmb13" ;
  857.         : increment "msnion_goals";// sams=1
  858.         : print {("Score: "+msnion_goals+" ")};
  859.      }
  860.   }
  861.  
  862.  
  863.   : match "launch missile;fire missile"  {
  864.      : if (is_at "loc_4_4air" &&  !is_present "pln10" && is_carried "msn11" ) {
  865.         : print   "Your missile destroys a F-35 Lightning II" ;
  866.         : destroy "msn11" ;
  867.         : destroy "pln11" ;
  868.         : increment "msnion_goals";// sams=1
  869.         : print {("Score: "+msnion_goals+" ")};
  870.      }
  871.   }
  872.  
  873.   : match "launch missile;fire missile"  {
  874.      : if (is_at "loc_4_4air" &&  !is_present "pln8" && is_carried "msn10" ) {
  875.         : print   "Your missile destroys a Sukhoi Su-57" ;
  876.         : destroy "msn10" ;
  877.         : destroy "pln10" ;
  878.         : increment "msnion_goals";// sams=1
  879.         : print {("Score: "+msnion_goals+" ")};
  880.        
  881.      }
  882.      
  883.   }
  884.  
  885.   : match "launch missile;fire missile"  {
  886.      : if (is_at "loc_4_4air" &&  !is_present "pln6" && is_carried "msn8" ) {
  887.         : print   "Your missile destroys a F-22 Raptor" ;
  888.         : destroy "msn8" ;
  889.         : destroy "pln8" ;
  890.         : increment "msnion_goals";// sams=1
  891.         : print {("Score: "+msnion_goals+" ")};
  892.        
  893.      }
  894.      
  895.   }
  896.  
  897.   : match "launch missile;fire missile"  {
  898.      : if (is_at "loc_4_4air" &&  !is_beside "pln4" && is_present "pln6" && is_carried "msn6" ) {
  899.         : print   "Your missile destroys a Sukhoi Su-35S" ;
  900.         : destroy "msn6" ;
  901.         : destroy "pln6" ;
  902.         : increment "msnion_goals";// sams=1
  903.         : print {("Score: "+msnion_goals+" ")};
  904.        
  905.      }
  906.      
  907.   }
  908.  
  909.   : match "launch missile;fire missile"  {
  910.      : if (is_at "loc_4_4air" && is_present "pln4" && is_carried "msn4") {
  911.         : print   "Your missile destroys a Dassault Rafale" ;
  912.         : destroy "msn4" ;
  913.         : destroy "pln4" ;
  914.         : increment "msnion_goals";// sams=1
  915.         : print {("Score: "+msnion_goals+" ")};
  916.         //: set_integer var = "sams_destroyed"  value = "1";
  917.      }
  918.   }
  919.  
  920.   : match "launch missile;fire missile"  {
  921.      : if (is_at "loc_4_4air" && is_present "old02" && is_carried "mso02") {
  922.  
  923.         : print "You have become so good that with one missile you also destroy : a formation containing 2 MKs 24 Spitfires , 1 Soviet Yakovlev Yak-3 , 2 P-47D Thunderbolts and a P-38J Lightning  ";
  924.         : destroy "mso02" ;
  925.         : destroy "old02" ;
  926.         : increment "msnion_goals";// sams=1
  927.         : print {("Score: "+msnion_goals+" ")};
  928.         //: set_integer var = "sams_destroyed"  value = "1";
  929.      }
  930.   }
  931.  
  932.  
  933.  
  934.  
  935.   //loc5_5boss Boss Base
  936.  
  937.   : match "drop rock;throw rock"  {
  938.      : if (is_present "tom_cruise" && is_at "loc5_5boss" && !is_present "pln12" && is_carried "rock") {
  939.         : print   "You drop the rock right in the head of Tom Cruise. There will not be another Top-Gun in the next 36 years!" ;
  940.         : destroy "rock" ;
  941.         : destroy "tom_cruise" ;
  942.         : increment "msnion_goals";// sams=1
  943.         : print {("Score: "+msnion_goals+" ")};        
  944.      }
  945.   }  
  946.  
  947.   : match "launch missile;fire missile"  {
  948.      : if (is_at "loc5_5boss" &&  !is_present "grn10" && is_carried "msn12" ) {
  949.         : print   "Your missile destroys a F-35 Lightning II" ;
  950.         : destroy "msn12" ;
  951.         : destroy "pln12" ;
  952.         : increment "msnion_goals";// sams=1
  953.         : print {("Score: "+msnion_goals+" ")};
  954.        
  955.      }
  956.      
  957.   }
  958.  
  959.   : match "drop bomb"  {
  960.      : if (is_at "loc5_5boss" &&  !is_beside "grn9" && is_present "grn10" && is_carried "bmb10" ) {
  961.         : print   "Your bomb destroys a S-500 Prometheus Range" ;
  962.         : destroy "bmb10" ;
  963.         : destroy "grn10" ;
  964.         : increment "msnion_goals";// sams=1
  965.         : print {("Score: "+msnion_goals+" ")};
  966.        
  967.      }
  968.      
  969.   }
  970.  
  971.  
  972.   : match "drop bomb"  {
  973.      : if (is_at "loc5_5boss" &&  !is_beside "grn8" && is_present "grn9" && is_carried "bmb9" ) {
  974.         : print   "Your bomb destroys a S-400 Triumph" ;
  975.         : destroy "bmb9" ;
  976.         : destroy "grn9" ;
  977.         : increment "msnion_goals";// sams=1
  978.         : print {("Score: "+msnion_goals+" ")};
  979.        
  980.      }
  981.      
  982.   }
  983.  
  984.   : match "drop bomb"  {
  985.      : if (is_at "loc5_5boss" && is_present "grn8" && is_carried "bmb8") {
  986.         : print   "Your bomb destroys a S-300VM (Antey-2500)" ;
  987.         : destroy "bmb8" ;
  988.         : destroy "grn8" ;
  989.         : increment "msnion_goals";// sams=1
  990.         : print {("Score: "+msnion_goals+" ")};
  991.         //: set_integer var = "sams_destroyed"  value = "1";
  992.      }
  993.   }
  994.  
  995.  
  996.   : match "launch missile;fire missile"  {
  997.      : if (is_at "loc5_5boss" && is_present "old03" && is_carried "mso03") {
  998.  
  999.         : print "With one missile you destroy : a formation containing 2 MKs 24 Spitfires , 1 Soviet Yakovlev Yak-3 , 2 P-47D Thunderbolts and a P-38J Lightning  ";
  1000.         : destroy "mso03" ;
  1001.         : destroy "old03" ;
  1002.         : increment "msnion_goals";// sams=1
  1003.         : print {("Score: "+msnion_goals+" ")};
  1004.         //: set_integer var = "sams_destroyed"  value = "1";
  1005.      }
  1006.   }
  1007.  
  1008.   : match "drop nuke;fire nuke"  {
  1009.      : if (is_at "loc5_5boss" && is_carried "nuke" ) {
  1010.         : print   "You decide it's more fun to nuke them all! You drop the nuke and you see all the enemy base destroyed. The evil Tom Cruise is gone! There won't be another Top Gun sequel for the next 36 years!" ;
  1011.         : destroy "nuke" ;
  1012. //         : destroy "msn4" ;
  1013. //         : destroy "msn6" ;
  1014. //         : destroy "msn8" ;        
  1015. //         : destroy "msn10" ;
  1016. //         : destroy "msn11" ;
  1017.         : destroy "tom_cruise" ;
  1018.         : destroy "old03" ;
  1019.         : destroy "grn8" ;
  1020.         : destroy "grn9" ;
  1021.         : destroy "pln12" ;
  1022.         : destroy "grn10" ;        
  1023.  
  1024.         : increment "msnion_goals";// sams=1
  1025.         : increment "msnion_goals";// sams=1
  1026.         : increment "msnion_goals";// sams=1
  1027.         : increment "msnion_goals";// sams=1
  1028.         : increment "msnion_goals";// sams=1
  1029.         : increment "msnion_goals";// sams=1        
  1030.         : print {("Score: "+msnion_goals+" ")};
  1031.      }
  1032.   }
  1033.  
  1034. // Maneuvers  
  1035.   : match "cuban eight"  {
  1036.      
  1037.         : print "You perform an amazing Cuban Eight Maneuver : This maneuver consists of a 5/8ths loop to the 45-degree line, then a half roll, a three-quarter loop again to the 45-degree line, then a half roll, and a quick 1/8 loop to the flight level.  ";
  1038.   }    
  1039.  
  1040.   : match "stall turn"  {
  1041.      
  1042.         : print "You perform an amazing Stall Turn : The torque/gyroscopic effect of this maneuver is what makes it so thrilling to watch.  To start, the pilot completes a quarter loop to vertical. As airspeed decreases, the pilot applies the rudder so the aircraft rotates around the yaw axis. This causes the nose to point to the ground, and there’s a pause made, drawing the vertical flight line down and making a quarter loop to level flight. Despite being called a “Stall Turn,” the aircraft doesn’t really stall. What happens here is that gyroscopic forces caused by the propeller during the rate of yaw produce a rolling movement. Keeping the aircraft under control during this maneuver is challenging, and requires expert skill. ";
  1043.   }
  1044.  
  1045.   : match "outside loop"  {
  1046.      
  1047.         : print "You perform an outside loop : This was the figure that test pilot and aviation pioneer Jim Doolittle proved as technically possible back in the early 1920’s, despite many aeronautical engineers claiming it was impossible. The pilot enters a vertical circle from straight, level flight, its canopy pointing out of the loop, and drops. What makes this so challenging is that it creates powerful negative G forces.";
  1048.   }      
  1049.  
  1050.   : match "failing leaf"  {
  1051.      
  1052.         : print "You perform a Failing Leaf : There are many different roll variations to choose from, but our pick is the rolling leaf. With the throttle off, the wings level stall, and the plane begins to slip into one direction. The pilot then counters the slip with the rudder before a true spin occurs, so it slips back the other direction, like a leaf. Countering with the rudder again slides it back, and the pilot can then continue this slip and slide motion or simply dive to exit into the next maneuver.";
  1053.   }  
  1054.  
  1055.   : match "reverse turn"  {
  1056.      
  1057.         : print "You perform a reverse turn";
  1058.   }      
  1059.  
  1060. }
  1061.  
  1062. vocabulary {
  1063.   : verb / aliases = [quit, eject]
  1064. }
  1065.  
  1066. game_settings {
  1067.   // By referencing an integer, we can dynamically change this limit in-game
  1068.   // using : set_integer, or using a dynamic integer.
  1069.   inventory_items_limit_var = inventory_limit
  1070.  
  1071.   inventory_weight_limit_var = inventory_limit
  1072.   inventory_worn_items_limit_var = inventory_limit    
  1073. }
  1074.  
  1075.  
  1076.  
  1077. assets {
  1078.   graphics {
  1079.  
  1080.  
  1081.   }
  1082.  
  1083.  
  1084. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement