maednmap1.txt 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. minplayers = 2;
  2. maxplayers = 4;
  3. gamesworld = world.get("games");
  4. lobbyspawnloc = loc.new(gamesworld, -1000, 95, 1000);
  5. gamesignsmap = getScriptVar("gamesigns");
  6. gamesignloc = map.get(gamesignsmap, "maednsign1");
  7. würfelloc = loc.new(gamesworld, -1000, 101, 1000);
  8. mapname = "Map1";
  9. colortext = list.new();
  10. list.add(colortext, "blue");
  11. list.add(colortext, "yellow");
  12. list.add(colortext, "green");
  13. list.add(colortext, "red");
  14. route = list.new();
  15. list.add(route, loc.new(gamesworld, -1001, 101, 1005));
  16. list.add(route, loc.new(gamesworld, -1001, 101, 1004));
  17. list.add(route, loc.new(gamesworld, -1001, 101, 1003));
  18. list.add(route, loc.new(gamesworld, -1001, 101, 1002));
  19. list.add(route, loc.new(gamesworld, -1001, 101, 1001));
  20. list.add(route, loc.new(gamesworld, -1002, 101, 1001));
  21. list.add(route, loc.new(gamesworld, -1003, 101, 1001));
  22. list.add(route, loc.new(gamesworld, -1004, 101, 1001));
  23. list.add(route, loc.new(gamesworld, -1005, 101, 1001));
  24. list.add(route, loc.new(gamesworld, -1005, 101, 1000));
  25. list.add(route, loc.new(gamesworld, -1005, 101, 999));
  26. list.add(route, loc.new(gamesworld, -1004, 101, 999));
  27. list.add(route, loc.new(gamesworld, -1003, 101, 999));
  28. list.add(route, loc.new(gamesworld, -1002, 101, 999));
  29. list.add(route, loc.new(gamesworld, -1001, 101, 999));
  30. list.add(route, loc.new(gamesworld, -1001, 101, 998));
  31. list.add(route, loc.new(gamesworld, -1001, 101, 997));
  32. list.add(route, loc.new(gamesworld, -1001, 101, 996));
  33. list.add(route, loc.new(gamesworld, -1001, 101, 995));
  34. list.add(route, loc.new(gamesworld, -1000, 101, 995));
  35. list.add(route, loc.new(gamesworld, -999, 101, 995));
  36. list.add(route, loc.new(gamesworld, -999, 101, 996));
  37. list.add(route, loc.new(gamesworld, -999, 101, 997));
  38. list.add(route, loc.new(gamesworld, -999, 101, 998));
  39. list.add(route, loc.new(gamesworld, -999, 101, 999));
  40. list.add(route, loc.new(gamesworld, -998, 101, 999));
  41. list.add(route, loc.new(gamesworld, -997, 101, 999));
  42. list.add(route, loc.new(gamesworld, -996, 101, 999));
  43. list.add(route, loc.new(gamesworld, -995, 101, 999));
  44. list.add(route, loc.new(gamesworld, -995, 101, 1000));
  45. list.add(route, loc.new(gamesworld, -995, 101, 1001));
  46. list.add(route, loc.new(gamesworld, -996, 101, 1001));
  47. list.add(route, loc.new(gamesworld, -997, 101, 1001));
  48. list.add(route, loc.new(gamesworld, -998, 101, 1001));
  49. list.add(route, loc.new(gamesworld, -999, 101, 1001));
  50. list.add(route, loc.new(gamesworld, -999, 101, 1002));
  51. list.add(route, loc.new(gamesworld, -999, 101, 1003));
  52. list.add(route, loc.new(gamesworld, -999, 101, 1004));
  53. list.add(route, loc.new(gamesworld, -999, 101, 1005));
  54. list.add(route, loc.new(gamesworld, -1000, 101, 1005));
  55. startindex = map.new();
  56. map.add(startindex, "blue", 0);
  57. map.add(startindex, "green", 10);
  58. map.add(startindex, "yellow", 20);
  59. map.add(startindex, "red", 30);
  60. homeindexes = map.new();
  61. map.add(homeindexes, "blue", 39);
  62. map.add(homeindexes, "green", 9);
  63. map.add(homeindexes, "yellow", 19);
  64. map.add(homeindexes, "red", 29);
  65. tploc = map.new();
  66. map.add(tploc, "blue", loc.new(gamesworld, -1001.5, 101, 1005.5,-180,0));
  67. map.add(tploc, "green", loc.new(gamesworld, -1004.5, 101, 998.5,-90,0));
  68. map.add(tploc, "yellow", loc.new(gamesworld, -997.5, 101, 995.5,0.0001,0));
  69. map.add(tploc, "red", loc.new(gamesworld, -994.5, 101, 1002.5,90,0));
  70. stable = map.new();
  71. aim = map.new();
  72. for(i = 0; i < list.getSize(colortext); i++) {
  73. color = list.getIndex(colortext, i);
  74. map.add(stable, color, list.new());
  75. map.add(aim, color, list.new());
  76. list = map.get(stable, color);
  77. list2 = map.get(aim, color);
  78. if(i == 0) {
  79. list.add(list, loc.new(gamesworld, -1004, 101, 1005));
  80. list.add(list, loc.new(gamesworld, -1004, 101, 1004));
  81. list.add(list, loc.new(gamesworld, -1005, 101, 1005));
  82. list.add(list, loc.new(gamesworld, -1005, 101, 1004));
  83. list.add(list2, loc.new(gamesworld, -1000, 101, 1004));
  84. list.add(list2, loc.new(gamesworld, -1000, 101, 1003));
  85. list.add(list2, loc.new(gamesworld, -1000, 101, 1002));
  86. list.add(list2, loc.new(gamesworld, -1000, 101, 1001));
  87. } elseif(i == 1) {
  88. list.add(list, loc.new(gamesworld, -1005, 101, 996));
  89. list.add(list, loc.new(gamesworld, -1004, 101, 996));
  90. list.add(list, loc.new(gamesworld, -1005, 101, 995));
  91. list.add(list, loc.new(gamesworld, -1004, 101, 995));
  92. list.add(list2, loc.new(gamesworld, -1004, 101, 1000));
  93. list.add(list2, loc.new(gamesworld, -1003, 101, 1000));
  94. list.add(list2, loc.new(gamesworld, -1002, 101, 1000));
  95. list.add(list2, loc.new(gamesworld, -1001, 101, 1000));
  96. } elseif(i == 2) {
  97. list.add(list, loc.new(gamesworld, -996, 101, 995));
  98. list.add(list, loc.new(gamesworld, -996, 101, 996));
  99. list.add(list, loc.new(gamesworld, -995, 101, 995));
  100. list.add(list, loc.new(gamesworld, -995, 101, 996));
  101. list.add(list2, loc.new(gamesworld, -1000, 101, 996));
  102. list.add(list2, loc.new(gamesworld, -1000, 101, 997));
  103. list.add(list2, loc.new(gamesworld, -1000, 101, 998));
  104. list.add(list2, loc.new(gamesworld, -1000, 101, 999));
  105. } elseif(i == 3) {
  106. list.add(list, loc.new(gamesworld, -995, 101, 1004));
  107. list.add(list, loc.new(gamesworld, -996, 101, 1004));
  108. list.add(list, loc.new(gamesworld, -995, 101, 1005));
  109. list.add(list, loc.new(gamesworld, -996, 101, 1005));
  110. list.add(list2, loc.new(gamesworld, -996, 101, 1000));
  111. list.add(list2, loc.new(gamesworld, -997, 101, 1000));
  112. list.add(list2, loc.new(gamesworld, -998, 101, 1000));
  113. list.add(list2, loc.new(gamesworld, -999, 101, 1000));
  114. }
  115. }