#SEQUENCE "follow";
# var func = nop;
  func = if(eq(avar("spawn_cave1_dead"), 0), seq_jump, nop);
  func("merc");
# seq_jump("next");

#SEQUENCE "next";
# load_event("forest/spawn_cave_dead2");
  char_control_push("mercenary_cin_01", "script", "allies/wait");
# char_control_jump( "spawn_cave3", "script", "buildings/spawn_cave_activate");
  avar("spawn_02_active", 1);
# wait(1.5);
# obs_kill("wall_01");
  explosion_make(128, 221, 5, .5, 0);
  explosion_make(129, 219, 2, .25, 0);
  explosion_make(126, 224, 2, .25, 0);
  sound_play("ambient/explode_03.wav", 128, 221, 1);
  char_clone("mercenary_fighter", 136, 229);
# wait(.1);
# char_control_push("mercenary_fighter", "script", "allies/forest_move_02");
# wait(4.5);
# char_control_pop("mercenary_cin_01");
# load_event("forest/spawn_cave_dead2b");
# wait( 5 );
# floating_text_make( "Tutorial Alert!", 60, 400, 2, 0, 0, 1, 18, colorRGB(0.0, 1.0, 0.0), 5.0, .5, .5, 0 );
  floating_text_make( "Your allies will aid you in battle. You can track", 60, 425, 2, 0, 0, 1, 18, colorRGB(0.0, 1.0, 0.0), 5.0, .5, .5, 0 );
  floating_text_make( "their health and location with the indicators.", 60, 450, 2, 0, 0, 1, 18, colorRGB(0.0, 1.0, 0.0), 5.0, .5, .5, 0 );
# kill_this();
# seq_jump("wait");

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

#SEQUENCE "merc";
# char_kill("mercenary_cin_01");
# char_make("allies/mercenary_cin_01", 121, 217);
# seq_jump("next");
