NightAtTheMuseum2.asl 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. state("Night")
  2. {
  3. string40 LevelID : 0x1B1DE1;
  4. int Loader : 0x188CFC;
  5. }
  6. init
  7. {
  8. vars.doneMaps = new List<string>();
  9. }
  10. startup
  11. {
  12. settings.Add("Levels", true, "All Levels");
  13. vars.missions2 = new Dictionary<string,string>
  14. {
  15. // {"NYC_Museum","NYC Museum"},
  16. {"Castle","Smithsonia Castle"},
  17. {"Archives_01","Federal Archives 1"},
  18. {"Air_and_Space", "Air and Space Museum"},
  19. {"Air_and_Space_B","A&SM Downstairs"},
  20. {"vending_machine","A&SM Vending Machine"},
  21. {"Air_and_Space_Boss","A&SM Able Chase"},
  22. {"Archives_02","Federal Archives 2"},
  23. {"art_museum","Art Museum"},
  24. {"Natural_History","National History Museum"},
  25. {"Air_and_Space2_Lunar","A&SM: Lunar Lander"},
  26. {"Air_and_Space_Vega","A&SM: Hanger"},
  27. {"National_Mall","Lincoln Memorial"},
  28. {"National_Mall4","Kahmunrah Battle"},
  29. };
  30. foreach (var Tag in vars.missions2)
  31. {
  32. settings.Add(Tag.Key, true, Tag.Value, "Levels");
  33. };
  34. }
  35. start
  36. {
  37. return ((current.LevelID.Split('.')[0]) == "NYC_Museum");
  38. }
  39. onStart
  40. {
  41. vars.doneMaps.Add(current.LevelID);
  42. }
  43. onReset
  44. {
  45. vars.doneMaps.Clear();
  46. }
  47. split
  48. {
  49. if ((settings[current.LevelID.Split('.')[0]]) && (!vars.doneMaps.Contains(current.LevelID)))
  50. {
  51. vars.doneMaps.Add(current.LevelID);
  52. return true;
  53. }
  54. }
  55. isLoading
  56. {
  57. return (current.Loader == 0);
  58. }