#SEQUENCE "stop";
# wait(.15);
# char_activate("player", 0);

  avar("vent_01_x", 52);
  avar("vent_01_y", 235);
  avar("vent_02_x", 41);
  avar("vent_02_y", 199);
  avar("vent_03_x", 58);
  avar("vent_03_y", 151);
  avar("vent_04_x", 24);
  avar("vent_04_y", 122);

  script_kill("ruin/vent_big_01");
  script_kill("ruin/vent_boss_05");

# script_load("ruin/vent_01");

# seq_jump("check");

#SEQUENCE "check";
# var func = nop;
  func = if(eq(avar("ruin_05_loaded"), 1), seq_jump, nop);
  func("kill");
# seq_jump("start");

#SEQUENCE "start";
//# sound_play("ambient/wind.wav", 1.0 );
# wait(.1);
# seq_jump("spawn_01");

#SEQUENCE "spawn_01";
# avar("waiting", 1);
# char_make("hairhair_lvl_01", rand(500, 550), rand(500, 550), "hairhair_lvl_01", 1 );
  char_make("hairhair_lvl_02", rand(500, 550), rand(500, 550), "hairhair_lvl_02", 1 );
  char_make("hairhair_lvl_03", rand(500, 550), rand(500, 550), "hairhair_lvl_03", 1 );
  indicator_char_make( "whipstone", 2, 0, "whipstone_cin_05", 0, colorRGB(0,1,0), .75, 1, 25, "indicator/kill.tga" );
# char_clone("hairhair_lvl_01", add(rand(-1,1), 62), add(rand(-1,1), 239));

  char_clone("hairhair_lvl_01", add(rand(-1,1), 29), add(rand(-1,1), 228));
  char_clone("hairhair_lvl_01", add(rand(-1,1), 29), add(rand(-1,1), 228));

  char_clone("hairhair_lvl_01", add(rand(-1,1), 84), add(rand(-1,1), 195));
  char_clone("hairhair_lvl_02", add(rand(-1,1), 84), add(rand(-1,1), 195));

  char_clone("hairhair_lvl_02", add(rand(-1,1), 32), add(rand(-1,1), 201));
  char_clone("hairhair_lvl_02", add(rand(-1,1), 32), add(rand(-1,1), 201));

  char_clone("hairhair_lvl_01", add(rand(-1,1), 71), add(rand(-1,1), 194));
  char_clone("hairhair_lvl_02", add(rand(-1,1), 71), add(rand(-1,1), 194));
  char_clone("hairhair_lvl_01", add(rand(-1,1), 71), add(rand(-1,1), 194));

  char_clone("hairhair_lvl_02", add(rand(-1,1), 71), add(rand(-1,1), 157));
  char_clone("hairhair_lvl_01", add(rand(-1,1), 71), add(rand(-1,1), 157));
  char_clone("hairhair_lvl_02", add(rand(-1,1), 71), add(rand(-1,1), 157));

  char_clone("hairhair_lvl_02", add(rand(-1,1), 17), add(rand(-1,1), 130));
  char_clone("hairhair_lvl_01", add(rand(-1,1), 17), add(rand(-1,1), 130));
  char_clone("hairhair_lvl_02", add(rand(-1,1), 17), add(rand(-1,1), 130));
  char_clone("hairhair_lvl_01", add(rand(-1,1), 17), add(rand(-1,1), 130));

  char_clone("hairhair_lvl_02", add(rand(-1,1), 38), add(rand(-1,1), 109));
  char_clone("hairhair_lvl_03", add(rand(-1,1), 38), add(rand(-1,1), 109));
  char_clone("hairhair_lvl_03", add(rand(-1,1), 38), add(rand(-1,1), 109));
  char_clone("hairhair_lvl_02", add(rand(-1,1), 38), add(rand(-1,1), 109));

  char_clone("hairhair_lvl_01", add(rand(-1,1), 52), add(rand(-1,1), 39));
  char_clone("hairhair_lvl_02", add(rand(-1,1), 52), add(rand(-1,1), 39));
  char_clone("hairhair_lvl_03", add(rand(-1,1), 52), add(rand(-1,1), 39));
  char_clone("hairhair_lvl_03", add(rand(-1,1), 52), add(rand(-1,1), 39));
  char_clone("hairhair_lvl_02", add(rand(-1,1), 52), add(rand(-1,1), 39));
  char_clone("hairhair_lvl_01", add(rand(-1,1), 52), add(rand(-1,1), 39));

# seq_jump("name");

#SEQUENCE "name";
# wait( 1 );
# char_activate("player", 1);
  avar("ruin_05_loaded", 1);
  screenFX_fade( "fade_black", .5, 0 );
  avar("loading", 0);
# seq_jump("wait");

#SEQUENCE "kill";
# wait( 1 );
# char_activate("player", 1);
  screenFX_fade( "fade_black", .5, 0 );
  avar("loading", 0);
# seq_jump("wait");

#SEQUENCE "wait";
# wait( 10000 );
