#SEQUENCE "cycle";
# var func = nop;
  func = if(and(avar("mushroom_01"), avar("mushroom_02"), avar("mushroom_03"), avar("mushroom_04")), seq_jump, nop);
  func("wall");
# seq_jump("done");

#SEQUENCE "wall";
# var func = nop;
  func = if(eq(avar("ruin_mushroom_complete"), 1), seq_jump, nop);
  func("done");
# wait( 1 );
# obs_kill("wall");
  sound_play("ambient/lightout.wav");
  avar("ruin_mushroom_complete", 1);
# kill_this();
# seq_jump("wait");

#SEQUENCE "done";
# kill_this();
# seq_jump("wait");

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