#SEQUENCE "stop";
# wait(.15);
# char_activate("player", 0);
# seq_jump(if(gvar("gfx_world_particles"), "particles", "check"));

#SEQUENCE "particles";
# var func = nop;
  func = if(geq(lvar("count"), 10), seq_jump, nop);
  func("check");
# particle_make( "mist_02", rand(0,200), rand(0,100), rand(9,24), rand(0.1,0.5), rand(-.1,.3), 0, 0 );
  particle_make( "mist_02", rand(0,200), rand(0,100), rand(9,24), rand(0.1,0.5), rand(-.1,.3), 0, 0 );
  particle_make( "mist_02", rand(0,200), rand(0,100), rand(9,24), rand(0.1,0.5), rand(-.1,.3), 0, 0 );
  particle_make( "mist_02", rand(0,200), rand(0,100), rand(9,24), rand(0.1,0.5), rand(-.1,.3), 0, 0 );
  particle_make( "mist_02", rand(0,200), rand(0,100), rand(9,24), rand(0.1,0.5), rand(-.1,.3), 0, 0 );
  lvar("count", add(lvar("count"), 5));
# wait( .0001 );

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

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

#SEQUENCE "spawn_01";
# avar("waiting", 1);
# char_make("kidneybr_lvl_01", rand(500, 550), rand(500, 550), "kidneybr_lvl_01", 1 );
  indicator_char_make( "whipstone", 2, 0, "whipstone_cin_01", 0, colorRGB(0,1,0), .75, 1, 25, "indicator/kill.tga" );
# char_clone("kidneybr_lvl_01", add(rand(-1,1), 63), add(rand(-1,1), 60));

  char_clone("kidneybr_lvl_01", add(rand(-1,1), 28), add(rand(-1,1), 58));
  char_clone("kidneybr_lvl_01", add(rand(-1,1), 28), add(rand(-1,1), 58));

  char_clone("kidneybr_lvl_01", add(rand(-1,1), 51), add(rand(-1,1), 36));
  char_clone("kidneybr_lvl_01", add(rand(-1,1), 51), add(rand(-1,1), 36));

  char_clone("kidneybr_lvl_01", add(rand(-1,1), 71), add(rand(-1,1), 54));
  char_clone("kidneybr_lvl_01", add(rand(-1,1), 71), add(rand(-1,1), 54));

# seq_jump("name");

#SEQUENCE "name";
# char_activate("player", 1);
  avar("ruin_01_loaded", 1);
  timer_make( "ruin_time", 600, "" );
  floating_text_make( "Ruin of Pain", 275, 20, 2, 0, 0, 1, 32, colorRGB(1.0, 1.0, 1.0), 7.5, .75, .75, 0 );
  screenFX_fade( "fade_black", 3, 0 );
  avar("loading", 0);
# kill_this();
# seq_jump("wait");

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

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