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

  avar("vent_01_x", 51);
  avar("vent_01_y", 156);
  avar("vent_02_x", 67);
  avar("vent_02_y", 116);
  avar("vent_03_x", 59);
  avar("vent_03_y", 64);
  avar("vent_04_x", 26);
  avar("vent_04_y", 39);

  sound_stop(avar("jungle_sound"));

# script_load("ruin/vent_01");

# seq_jump("check");

#SEQUENCE "check";
# var func = nop;
  func = if(eq(avar("ruin_03_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 );
  indicator_char_make( "whipstone", 2, 0, "whipstone_cin_02", 0, colorRGB(0,1,0), .75, 1, 25, "indicator/kill.tga" );
# char_clone("hairhair_lvl_01", add(rand(-1,1), 41), add(rand(-1,1), 71));
  char_clone("hairhair_lvl_01", add(rand(-1,1), 41), add(rand(-1,1), 71));

  char_clone("hairhair_lvl_01", add(rand(-1,1), 43), add(rand(-1,1), 127));
  char_clone("hairhair_lvl_01", add(rand(-1,1), 43), add(rand(-1,1), 127));
  char_clone("hairhair_lvl_01", add(rand(-1,1), 43), add(rand(-1,1), 127));

  char_clone("hairhair_lvl_02", add(rand(-1,1), 72), add(rand(-1,1), 81));

  char_clone("hairhair_lvl_02", add(rand(-1,1), 23), add(rand(-1,1), 51));
  char_clone("hairhair_lvl_01", add(rand(-1,1), 23), add(rand(-1,1), 51));

  char_clone("hairhair_lvl_02", add(rand(-1,1), 36), add(rand(-1,1), 30));
  char_clone("hairhair_lvl_01", add(rand(-1,1), 36), add(rand(-1,1), 30));

  char_clone("hairhair_lvl_02", add(rand(-1,1), 54), add(rand(-1,1), 12));
  char_clone("hairhair_lvl_01", add(rand(-1,1), 54), add(rand(-1,1), 12));

# seq_jump("name");

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

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

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