
<<

@level
{
   #string level_name "level2";
   #point level_size 32, 24;
   #string level_env "grass";
   #float level_time 900;
   #string name_emb_music "music_emb_grass_day.ogg";
   #string name_pri_music "music_pri_neutral2.ogg";
   #float plant_thirst_growth 0;
   #float plant_fruit_growth 6;
   #float plant_growth 6;
   #float health_reduction_after_harvest 0;
   #float health_reduction_when_thirsty 0;
   #float plant_fertilizer_strength 34;
   #float plant_fertilizer_time 3;
   #float plant_starting_health 100;
   #float plant_minimal_health 1;
   @game_field
   {
      @ground
      {
         #string name "grass";
         #string texground_name "grass_center_tile.tga";
         #string texmask_name "lx_fill_mask.tga";
      }
      @object_list
      {
      }
      @render_list
      {
      }
      @physics_list
      {
      }
      @object_map
      {
      }
   }
   @scenario
   {
      [level2_entry]
      @event
      {
         #string name "l2_init";
         @action
         {
            #string type "add to shop";
            #string data "box";
         }
         @action
         {
            #string type "add to shop";
            #string data "watercan";
         }
         @action
         {
            #string type "set money";
            #string data "30";
         }
         @action
         {
            #string type "set upgrade";
            #string data "house_sheep 0 0";
            #float delay 0;
         }
         @action
         {
            #string type "add dialogue";
            #string data "l2_sell_fruits_by_scenario_dialog";
            #float delay 100;
         }
      }
      @event
      {
         #string name "l2_add_fivebox_by_switch";
         @action
         {
            #string type "add to shop";
            #string data "fivebox";
         }
         @action
         {
            #string type "add dialogue";
            #string data "l2_add_fivebox_by_switch_dialog";
         }
         @condition
         {
            #string type "place box";
            #string data ">=1";
         }
      }
      @event
      {
         #string name "l2_sell_fruits_by_scenario";
         #bool player_task true;
         @action
         {
            #string type "add to shop";
            #string data "seed_carrot";
         }
         @action
         {
            #string type "open shop tab";
            #string data "seeds_tab";
         }
         @action
         {
            #string type "add dialogue";
            #string data "l2_buy_seeds_by_scenario_dialog";
         }
         @condition
         {
            #string type "sell tree_pear";
            #string data ">=1";
         }
         @condition
         {
            #string type "sell tree_peach";
            #string data ">=1";
         }
      }
      @event
      {
         #string name "l2_buy_seeds_by_scenario";
         #bool player_task true;
         @action
         {
            #string type "add dialogue";
            #string data "l2_sow_seeds_by_scenario_dialog";
         }
         @condition
         {
            #string type "place seed_carrot";
            #string data ">=1";
         }
         @condition
         {
            #string type "enabled by event";
            #string data "l2_sell_fruits_by_scenario";
         }
      }
      @event
      {
         #string name "l2_sow_seeds_by_scenario";
         #bool player_task true;
         @action
         {
            #string type "add dialogue";
            #string data "l2_sell_vegetables_by_scenario_dialog";
         }
         @condition
         {
            #string type "sow seed_carrot";
            #string data ">=12";
         }
         @condition
         {
            #string type "enabled by event";
            #string data "l2_buy_seeds_by_scenario";
         }
      }
      @event
      {
         #string name "l2_sell_vegetables_by_scenario";
         #bool player_task true;
         @action
         {
            #string type "center view";
            #string data "house_sheep";
         }
         @action
         {
            #string type "set upgrade";
            #string data "house_sheep 0 1";
         }
         @action
         {
            #string type "add dialogue";
            #string data "l2_repair_house_by_scenario_dialog";
         }
         @condition
         {
            #string type "sell plant_carrot";
            #string data ">=3";
         }
         @condition
         {
            #string type "enabled by event";
            #string data "l2_sow_seeds_by_scenario";
         }
      }
      @event
      {
         #string name "l2_repair_house_by_scenario";
         #bool player_task true;
         @action
         {
            #string type "add dialogue";
            #string data "l2_feed_sheep_by_scenario_dialog";
         }
         @condition
         {
            #string type "upgraded house_sheep 1";
            #string data ">=1";
         }
         @condition
         {
            #string type "enabled by event";
            #string data "l2_sell_vegetables_by_scenario";
         }
      }
      @event
      {
         #string name "l2_feed_sheep_by_scenario";
         #bool player_task true;
         @action
         {
            #string type "add money";
            #string data "60";
         }
         @action
         {
            #string type "open shop tab";
            #string data "inventory_tab";
         }
         @action
         {
            #string type "set plant health";
            #string data "15";
         }
         @action
         {
            #string type "add to shop";
            #string data "fertilizer";
         }
         @action
         {
            #string type "add dialogue";
            #string data "l2_fertilize_by_scenario_dialog";
         }
         @condition
         {
            #string type "feed house_sheep";
            #string data ">=1";
         }
         @condition
         {
            #string type "enabled by event";
            #string data "l2_repair_house_by_scenario";
         }
      }
      @event
      {
         #string name "l2_fertilize_by_scenario";
         #bool player_task true;
         @action
         {
            #string type "add dialogue";
            #string data "l2_watering_by_scenario_dialog";
         }
         @action
         {
            #string type "set plant thirst";
            #string data "15";
         }
         @action
         {
            #string type "set plant thirst";
            #string data "0";
            #float delay 6000;
         }
         @condition
         {
            #string type "plants fertilized";
            #string data ">=12";
         }
         @condition
         {
            #string type "enabled by event";
            #string data "l2_feed_sheep_by_scenario";
         }
      }
      @event
      {
         #string name "l2_watering_by_scenario";
         #bool player_task true;
         @action
         {
            #string type "add dialogue";
            #string data "l2_sell_fur_by_scenario_dialog";
         }
         @action
         {
            #string type "house ready";
            #string data "house_sheep";
         }
         @condition
         {
            #string type "plants watered";
            #string data ">=12";
         }
         @condition
         {
            #string type "enabled by event";
            #string data "l2_fertilize_by_scenario";
         }
      }
      @event
      {
         #string name "l2_sell_fur_by_scenario";
         #bool player_task true;
         @action
         {
            #string type "add dialogue";
            #string data "l2_victory_dialog";
         }
         @condition
         {
            #string type "sell house_sheep";
            #string data ">=1";
         }
         @condition
         {
            #string type "enabled by event";
            #string data "l2_watering_by_scenario";
         }
      }
      @event
      {
         #string name "l2_victory";
         @action
         {
            #string type "victory";
         }
         @condition
         {
            #string type "enabled by event";
            #string data "l2_sell_fur_by_scenario";
         }
         @condition
         {
            #string type "end dialogue l2_victory_dialog";
            #string data ">=1";
         }
      }
   }
}

>>
