dontgetangry_map1.txt 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. minplayers = 2;
  2. maxplayers = 4;
  3. gamesignloc = minigame.getSignLoc("dontgetangrysign1");
  4. gamesworld = world.getGames();
  5. lobbyspawnloc = loc.new(gamesworld, -1000, 95, 1000);
  6. dice_loc = loc.new(gamesworld, -1000, 101, 1000);
  7. mapname = "Default 4x1";
  8. rule_1_loc = loc.new(gamesworld, -999, 96, 1005); //jump over tokens in target
  9. rule_2_loc = loc.new(gamesworld, -1000, 96, 1005); //amount ai players
  10. route = array.new(40);
  11. route[0] = loc.new(gamesworld, -1001, 101, 1005);
  12. route[1] = loc.new(gamesworld, -1001, 101, 1004);
  13. route[2] = loc.new(gamesworld, -1001, 101, 1003);
  14. route[3] = loc.new(gamesworld, -1001, 101, 1002);
  15. route[4] = loc.new(gamesworld, -1001, 101, 1001);
  16. route[5] = loc.new(gamesworld, -1002, 101, 1001);
  17. route[6] = loc.new(gamesworld, -1003, 101, 1001);
  18. route[7] = loc.new(gamesworld, -1004, 101, 1001);
  19. route[8] = loc.new(gamesworld, -1005, 101, 1001);
  20. route[9] = loc.new(gamesworld, -1005, 101, 1000);
  21. route[10] = loc.new(gamesworld, -1005, 101, 999);
  22. route[11] = loc.new(gamesworld, -1004, 101, 999);
  23. route[12] = loc.new(gamesworld, -1003, 101, 999);
  24. route[13] = loc.new(gamesworld, -1002, 101, 999);
  25. route[14] = loc.new(gamesworld, -1001, 101, 999);
  26. route[15] = loc.new(gamesworld, -1001, 101, 998);
  27. route[16] = loc.new(gamesworld, -1001, 101, 997);
  28. route[17] = loc.new(gamesworld, -1001, 101, 996);
  29. route[18] = loc.new(gamesworld, -1001, 101, 995);
  30. route[19] = loc.new(gamesworld, -1000, 101, 995);
  31. route[20] = loc.new(gamesworld, -999, 101, 995);
  32. route[21] = loc.new(gamesworld, -999, 101, 996);
  33. route[22] = loc.new(gamesworld, -999, 101, 997);
  34. route[23] = loc.new(gamesworld, -999, 101, 998);
  35. route[24] = loc.new(gamesworld, -999, 101, 999);
  36. route[25] = loc.new(gamesworld, -998, 101, 999);
  37. route[26] = loc.new(gamesworld, -997, 101, 999);
  38. route[27] = loc.new(gamesworld, -996, 101, 999);
  39. route[28] = loc.new(gamesworld, -995, 101, 999);
  40. route[29] = loc.new(gamesworld, -995, 101, 1000);
  41. route[30] = loc.new(gamesworld, -995, 101, 1001);
  42. route[31] = loc.new(gamesworld, -996, 101, 1001);
  43. route[32] = loc.new(gamesworld, -997, 101, 1001);
  44. route[33] = loc.new(gamesworld, -998, 101, 1001);
  45. route[34] = loc.new(gamesworld, -999, 101, 1001);
  46. route[35] = loc.new(gamesworld, -999, 101, 1002);
  47. route[36] = loc.new(gamesworld, -999, 101, 1003);
  48. route[37] = loc.new(gamesworld, -999, 101, 1004);
  49. route[38] = loc.new(gamesworld, -999, 101, 1005);
  50. route[39] = loc.new(gamesworld, -1000, 101, 1005);
  51. colorcode = map.new();
  52. map.add(colorcode, 0, "§9");
  53. map.add(colorcode, 1, "§e");
  54. map.add(colorcode, 2, "§2");
  55. map.add(colorcode, 3, "§c");
  56. startindexes = map.new();
  57. map.add(startindexes, 0, 0);
  58. map.add(startindexes, 1, 20);
  59. map.add(startindexes, 2, 10);
  60. map.add(startindexes, 3, 30);
  61. targetindexes = map.new();
  62. map.add(targetindexes, 0, 39);
  63. map.add(targetindexes, 1, 19);
  64. map.add(targetindexes, 2, 9);
  65. map.add(targetindexes, 3, 29);
  66. tploc = map.new();
  67. map.add(tploc, 0, loc.new(gamesworld, -1001.5, 101, 1005.5,-180,0));
  68. map.add(tploc, 1, loc.new(gamesworld, -997.5, 101, 995.5,0.0001,0));
  69. map.add(tploc, 2, loc.new(gamesworld, -1004.5, 101, 998.5,-90,0));
  70. map.add(tploc, 3, loc.new(gamesworld, -994.5, 101, 1002.5,90,0));
  71. tokens = map.new();
  72. map.add(tokens, 0, material.get("BLUE_BANNER"));
  73. map.add(tokens, 1, material.get("YELLOW_BANNER"));
  74. map.add(tokens, 2, material.get("GREEN_BANNER"));
  75. map.add(tokens, 3, material.get("RED_BANNER"));
  76. tokens_team = map.new();
  77. map.add(tokens_team, material.get("BLUE_BANNER"), 0);
  78. map.add(tokens_team, material.get("YELLOW_BANNER"), 1);
  79. map.add(tokens_team, material.get("GREEN_BANNER"), 2);
  80. map.add(tokens_team, material.get("RED_BANNER"), 3);
  81. stables = map.new();
  82. target_routes = map.new();
  83. for(i = 0; i < maxplayers; i++) {
  84. stable = array.new(4);
  85. target = array.new(4);
  86. if(i == 0) {
  87. stable[0] = loc.new(gamesworld, -1004, 101, 1005);
  88. stable[1] = loc.new(gamesworld, -1004, 101, 1004);
  89. stable[2] = loc.new(gamesworld, -1005, 101, 1005);
  90. stable[3] = loc.new(gamesworld, -1005, 101, 1004);
  91. target[0] = loc.new(gamesworld, -1000, 101, 1004);
  92. target[1] = loc.new(gamesworld, -1000, 101, 1003);
  93. target[2] = loc.new(gamesworld, -1000, 101, 1002);
  94. target[3] = loc.new(gamesworld, -1000, 101, 1001);
  95. } elseif(i == 1) {
  96. stable[0] = loc.new(gamesworld, -996, 101, 995);
  97. stable[1] = loc.new(gamesworld, -996, 101, 996);
  98. stable[2] = loc.new(gamesworld, -995, 101, 995);
  99. stable[3] = loc.new(gamesworld, -995, 101, 996);
  100. target[0] = loc.new(gamesworld, -1000, 101, 996);
  101. target[1] = loc.new(gamesworld, -1000, 101, 997);
  102. target[2] = loc.new(gamesworld, -1000, 101, 998);
  103. target[3] = loc.new(gamesworld, -1000, 101, 999);
  104. } elseif(i == 2) {
  105. stable[0] = loc.new(gamesworld, -1005, 101, 996);
  106. stable[1] = loc.new(gamesworld, -1004, 101, 996);
  107. stable[2] = loc.new(gamesworld, -1005, 101, 995);
  108. stable[3] = loc.new(gamesworld, -1004, 101, 995);
  109. target[0] = loc.new(gamesworld, -1004, 101, 1000);
  110. target[1] = loc.new(gamesworld, -1003, 101, 1000);
  111. target[2] = loc.new(gamesworld, -1002, 101, 1000);
  112. target[3] = loc.new(gamesworld, -1001, 101, 1000);
  113. } elseif(i == 3) {
  114. stable[0] = loc.new(gamesworld, -995, 101, 1004);
  115. stable[1] = loc.new(gamesworld, -996, 101, 1004);
  116. stable[2] = loc.new(gamesworld, -995, 101, 1005);
  117. stable[3] = loc.new(gamesworld, -996, 101, 1005);
  118. target[0] = loc.new(gamesworld, -996, 101, 1000);
  119. target[1] = loc.new(gamesworld, -997, 101, 1000);
  120. target[2] = loc.new(gamesworld, -998, 101, 1000);
  121. target[3] = loc.new(gamesworld, -999, 101, 1000);
  122. }
  123. map.add(stables, i, stable);
  124. map.add(target_routes, i, target);
  125. }