var on_x_1 = 0;
function touch_x_1 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_1 == 0) {
    on_x_1 = 1;
    wait (1);
   }
}
}

action the_x_1 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_1;
}


function grape_fall_1 {
 if (on_x_1 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_1 = 2;
     wait (1);
  }
}

action the_grape_1 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_1;
}

var on_x_2 = 0;
function touch_x_2 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_2 == 0) {
    on_x_2 = 1;
    wait (1);
   }
}
}

action the_x_2 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_2;
}


function grape_fall_2 {
 if (on_x_2 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_2 = 2;
     wait (1);
  }
}

action the_grape_2 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_2;
}

var on_x_3 = 0;
function touch_x_3 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_3 == 0) {
    on_x_3 = 1;
    wait (1);
   }
}
}

action the_x_3 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_3;
}


function grape_fall_3 {
 if (on_x_3 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_3 = 2;
     wait (1);
  }
}

action the_grape_3 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_3;
}

var on_x_4 = 0;
function touch_x_4 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_4 == 0) {
    on_x_4 = 1;
    wait (1);
   }
}
}

action the_x_4 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_4;
}


function grape_fall_4 {
 if (on_x_4 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_4 = 2;
     wait (1);
  }
}

action the_grape_4 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_4;
}

var on_x_5 = 0;
function touch_x_5 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_5 == 0) {
    on_x_5 = 1;
    wait (1);
   }
}
}

action the_x_5 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_5;
}


function grape_fall_5 {
 if (on_x_5 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_5 = 2;
     wait (1);
  }
}

action the_grape_5 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_5;
}

var on_x_6 = 0;
function touch_x_6 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_6 == 0) {
    on_x_6 = 1;
    wait (1);
   }
}
}

action the_x_6 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_6;
}


function grape_fall_6 {
 if (on_x_6 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_6 = 2;
     wait (1);
  }
}

action the_grape_6 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_6;
}

var on_x_7 = 0;
function touch_x_7 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_7 == 0) {
    on_x_7 = 1;
    wait (1);
   }
}
}

action the_x_7 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_7;
}


function grape_fall_7 {
 if (on_x_7 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_7 = 2;
     wait (1);
  }
}

action the_grape_7 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_7;
}

var on_x_8 = 0;
function touch_x_8 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_8 == 0) {
    on_x_8 = 1;
    wait (1);
   }
}
}

action the_x_8 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_8;
}


function grape_fall_8 {
 if (on_x_8 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_8 = 2;
     wait (1);
  }
}

action the_grape_8 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_8;
}

var on_x_9 = 0;
function touch_x_9 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_9 == 0) {
    on_x_9 = 1;
    wait (1);
   }
}
}

action the_x_9 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_9;
}


function grape_fall_9 {
 if (on_x_9 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_9 = 2;
     wait (1);
  }
}

action the_grape_9 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_9;
}

var on_x_10 = 0;
function touch_x_10 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_10 == 0) {
    on_x_10 = 1;
    wait (1);
   }
}
}

action the_x_10 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_10;
}


function grape_fall_10 {
 if (on_x_10 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_10 = 2;
     wait (1);
  }
}

action the_grape_10 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_10;
}






var on_x_11 = 0;
function touch_x_11 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_11 == 0) {
    on_x_11 = 1;
    wait (1);
   }
}
}

action the_x_11 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_11;
}


function grape_fall_11 {
 if (on_x_11 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_11 = 2;
     wait (1);
  }
}

action the_grape_11 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_11;
}

var on_x_12 = 0;
function touch_x_12 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_12 == 0) {
    on_x_12 = 1;
    wait (1);
   }
}
}

action the_x_12 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_12;
}


function grape_fall_12 {
 if (on_x_12 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_12 = 2;
     wait (1);
  }
}

action the_grape_12 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_12;
}

var on_x_13 = 0;
function touch_x_13 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_13 == 0) {
    on_x_13 = 1;
    wait (1);
   }
}
}

action the_x_13 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_13;
}


function grape_fall_13 {
 if (on_x_13 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_13 = 2;
     wait (1);
  }
}

action the_grape_13 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_13;
}

var on_x_14 = 0;
function touch_x_14 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_14 == 0) {
    on_x_14 = 1;
    wait (1);
   }
}
}

action the_x_14 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_14;
}


function grape_fall_14 {
 if (on_x_14 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_14 = 2;
     wait (1);
  }
}

action the_grape_14 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_14;
}

var on_x_15 = 0;
function touch_x_15 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_15 == 0) {
    on_x_15 = 1;
    wait (1);
   }
}
}

action the_x_15 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_15;
}


function grape_fall_15 {
 if (on_x_15 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_15 = 2;
     wait (1);
  }
}

action the_grape_15 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_15;
}

var on_x_16 = 0;
function touch_x_16 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_16 == 0) {
    on_x_16 = 1;
    wait (1);
   }
}
}

action the_x_16 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_16;
}


function grape_fall_16 {
 if (on_x_16 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_16 = 2;
     wait (1);
  }
}

action the_grape_16 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_16;
}

var on_x_17 = 0;
function touch_x_17 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_17 == 0) {
    on_x_17 = 1;
    wait (1);
   }
}
}

action the_x_17 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_17;
}


function grape_fall_17 {
 if (on_x_17 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_17 = 2;
     wait (1);
  }
}

action the_grape_17 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_17;
}

var on_x_18 = 0;
function touch_x_18 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_18 == 0) {
    on_x_18 = 1;
    wait (1);
   }
}
}

action the_x_18 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_18;
}


function grape_fall_18 {
 if (on_x_18 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_18 = 2;
     wait (1);
  }
}

action the_grape_18 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_18;
}

var on_x_19 = 0;
function touch_x_19 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_19 == 0) {
    on_x_19 = 1;
    wait (1);
   }
}
}

action the_x_19 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_19;
}


function grape_fall_19 {
 if (on_x_19 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_19 = 2;
     wait (1);
  }
}

action the_grape_19 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_19;
}

var on_x_20 = 0;
function touch_x_20 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_20 == 0) {
    on_x_20 = 1;
    wait (1);
   }
}
}

action the_x_20 {
  my.trigger_range = 20;
  my.ENABLE_trigger = ON;
  my.event = touch_x_20;
}


function grape_fall_20 {
 if (on_x_20 == 1) {
 	while (my.z > -549) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_20 = 2;
     wait (1);
  }
}

action the_grape_20 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_20;
}

var on_x_21 = 0;
function touch_x_21 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_21 == 0) {
    on_x_21 = 1;
    wait (1);
   }
}
}

action the_x_21 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_21;
}


function grape_fall_21 {
 if (on_x_21 == 1) {
 	while (my.z > -555) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_21 = 2;
     wait (1);
  }
}

action the_grape_21 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_21;
}

var on_x_22 = 0;
function touch_x_22 {
  if (EVENT_TYPE == event_trigger) {
  	if (on_x_22 == 0) {
    on_x_22 = 1;
    wait (1);
   }
}
}

action the_x_22 {
  my.trigger_range = 10;
  my.ENABLE_trigger = ON;
  my.event = touch_x_22;
}


function grape_fall_22 {
 if (on_x_22 == 1) {
 	while (my.z > -555) {
 		my.Z -= 6*TIME;
 		wait (1);
   }
     player._HEALTH = 0;
     on_x_22 = 2;
     wait (1);
  }
}

action the_grape_22 {
  my.trigger_range = 500;
  my.ENABLE_trigger = ON;
  my.event = grape_fall_22;
}



function reset_our_vars {
 if (EVENT_TYPE == event_trigger) {
		on_x_1 = 0;
		on_x_2 = 0;
		on_x_3 = 0;
		on_x_4 = 0;
		on_x_5 = 0;
		on_x_6 = 0;
		on_x_7 = 0;
		on_x_8 = 0;
		on_x_9 = 0;
		on_x_10 = 0;
		on_x_11 = 0;
		on_x_12 = 0;
		on_x_13 = 0;
		on_x_14 = 0;
		on_x_15 = 0;
		on_x_16 = 0;
		on_x_17 = 0;
		on_x_18 = 0;
		on_x_19 = 0;
		on_x_20 = 0;
		on_x_21 = 0;
		on_x_22 = 0;
}
}

action reset {
  my.trigger_range = 175;
  my.ENABLE_trigger = ON;
  my.event = reset_our_vars;
}