
playlist titan_spawn = [
  "SPAWN.mp3" <+5.0>
];

playlist spawn_townfull = [
  "Festival.mp3" <-25.0>
];

playlist spawn_townempty = [
  "castletown_empty.mp3" <-25.0>
];


    when ( @in_game ) 
    begin

begin
 
  when ( @in_combat )
  let mobs = $combatants in
        begin
            when ( any mob in mobs has mob.type_id ~~ "createmoremechanisms:titan_spawn" end) play instant titan_spawn;
        end
end

        let areas = $areas in
        begin

            when ( areas[0].name == "SpawnFull")  
                play spawn_townfull;

            when ( areas[0].name == "SpawnEmpty")  
                play spawn_townempty;

        end

end