let here = GetCurrentScriptDirectory();

task LoadStuff(n){

  for each(let obj : sounds){LoadSound(obj);}

  LoadSound(here ~ "./lib/BGM/Prevent_Fire.ogg");
  LoadSound(here ~ "./lib/BGM/Drek.mp3");

  LoadScript(here ~ "./dialogue/Dialogue.dnh");
  ascent(i in 0..n){
		LoadScript(here ~ "./scripts/Non" ~ vtos("02d", i+1) ~ ".dnh");
		LoadScript(here ~ "./scripts/Spell" ~ vtos("02d", i+1) ~ ".dnh");
	}
  LoadScript(here ~ "./scripts/Spell" ~ vtos("02d", n+1) ~ ".dnh");

  LoadTextureEx(here ~ "img/cloud02.jpg", true, false); 
  LoadTextureEx(here ~ "img/fog01.png", true, false); 
  LoadTextureEx(here ~ "img/light.png", true, false); 
  LoadTextureEx(here ~ "img/grass.jpg", true, true); 
  LoadTextureEx(here ~ "img/heck.png", true, true);  
  LoadTextureEx(here ~ "img/heci.png", true, true);  
  LoadTextureEx(here ~ "scripts/task_folder/img/sleep.png", true, true); 

  LoadTextureEx(here ~ "system/img/lifebar.png", true, false); 
  LoadTextureEx(here ~ "system/img/fiesta.png", true, true); 
  LoadTextureEx(here ~ "system/img/front00.png", true, false); 
  LoadTextureEx(here ~ "system/img/bitmap.png", true, true); 
  LoadTextureEx(here ~ "system/img/Default_System.png", true, false); 
  LoadTextureEx(here ~ "system/img/SystemDigit.png", true, true); 
  LoadTextureEx(here ~ "system/img/frame2.png", true, true); 
  LoadTextureEx(here ~ "system/img/messages/boi.png", true, true); 
  LoadTextureEx(here ~ "system/diff.png", true, true); 

  InstallFont(here ~ "lib/Fonts/THSpatial.ttf");
  InstallFont(here ~ "lib/Fonts/osaka_unicode.ttf");
  InstallFont(here ~ "lib/Fonts/monofonto.ttf");
  InstallFont(here ~ "lib/Fonts/orbitron-bold.ttf");
  InstallFont(here ~ "lib/Fonts/Russell Square Regular.ttf");
}