halma_map1.txt 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. gamesignsmap = getScriptVar("gamesigns");
  2. gamesignloc = map.get(gamesignsmap, "halmasign1");
  3. mapname = "Sternenhalma";
  4. maxplayers = 3;
  5. minplayers = 2;
  6. ox = 2; //Differenz der Felder in x-Richtung
  7. oz = 3; //Differenz der Felder in z-Richtung
  8. //Mögliche Differenzen in x und z Richtung
  9. possible_move_differences = list.new();
  10. list.add(possible_move_differences, getPair(ox, oz));
  11. list.add(possible_move_differences, getPair(4, 0));
  12. //Ab hier hüpft die Spielfigur
  13. jumping_index = 2;
  14. list.add(possible_move_differences, getPair(2*ox, 2*oz));
  15. list.add(possible_move_differences, getPair(8, 0));
  16. gamesworld = world.get("games");
  17. lobbyspawnloc = loc.new(gamesworld, 1014, 82, 1032);
  18. spawn_loc = loc.new(gamesworld, 3974.5, 97.5, 2974.5);
  19. point_block = "minecraft:glowstone";
  20. basic_block = "minecraft:black_concrete";
  21. red_token = "minecraft:red_banner";
  22. blue_token = "minecraft:light_blue_banner";
  23. green_token = "minecraft:green_banner";
  24. tokens_map = map.new();
  25. map.add(tokens_map, 0, red_token);
  26. map.add(tokens_map, 1, blue_token);
  27. map.add(tokens_map, 2, green_token);
  28. tokens_map2 = map.new();
  29. map.add(tokens_map2, red_token, 0);
  30. map.add(tokens_map2, blue_token, 1);
  31. map.add(tokens_map2, green_token, 2);
  32. rotations_map = map.new();
  33. map.add(rotations_map, 0, "0"); //red
  34. map.add(rotations_map, 1, "10"); //blue
  35. map.add(rotations_map, 2, "6"); //green
  36. colors_map = map.new();
  37. map.add(colors_map, 0, "§c");
  38. map.add(colors_map, 1, "§t");
  39. map.add(colors_map, 2, "§a");
  40. north_loc = loc.new(gamesworld, 3974, 97, 2950); //nördlichster punkt
  41. red_start_locs = createFieldNorth(north_loc, ox, oz);
  42. south_loc = loc.new(gamesworld, 3974, 97, 2998); //südlichster punkt
  43. red_aim_locs = createFieldSouth(south_loc, ox, oz);
  44. north_loc = loc.new(gamesworld, 3958, 97, 2974); //nördlichster punkt
  45. blue_start_locs = createFieldNorth(north_loc, ox, oz);
  46. south_loc = loc.new(gamesworld, 3990, 97, 2974); //südlichster punkt
  47. blue_aim_locs = createFieldSouth(south_loc, ox, oz);
  48. north_loc = loc.new(gamesworld, 3990, 97, 2974); //nördlichster punkt
  49. green_start_locs = createFieldNorth(north_loc, ox, oz);
  50. south_loc = loc.new(gamesworld, 3958, 97, 2974); //südlichster punkt
  51. green_aim_locs = createFieldSouth(south_loc, ox, oz);
  52. start_locs = map.new();
  53. map.add(start_locs, 0, red_start_locs);
  54. map.add(start_locs, 1, blue_start_locs);
  55. map.add(start_locs, 2, green_start_locs);
  56. aim_locs = map.new();
  57. map.add(aim_locs, 0, red_aim_locs);
  58. map.add(aim_locs, 1, blue_aim_locs);
  59. map.add(aim_locs, 2, green_aim_locs);
  60. loc = loc.new(gamesworld, 3968, 97, 2965); //von den nördlichsten punkten der westlichste
  61. center_locs = createFieldCenter(loc, ox, oz);