sinkshipsmap1.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. playersneeded = 2;
  2. maxplayers = 2;
  3. mapname = "Map1";
  4. lobbyloc = read.location("");
  5. gamesignloc = read.location(ggv("SERVER", "sinkshipsmap1"));
  6. add_if_name = "minigames/sinkships/sinkshipsmap1";
  7. seablock = read.item("wool:11");
  8. list.new("startlocs");
  9. list.add(startlocs, read.location("games:4005.5:101:3993.5:0.0001:0.0001"));
  10. list.add(startlocs, read.location("games:3992.5:101:4011.5:180:0"));
  11. list.new("ships");
  12. list.add(ships, 2);
  13. list.add(ships, 3);
  14. list.add(ships, 4);
  15. list.add(ships, 5);
  16. set.new("signnames");
  17. set.add(signnames, "U-Boot");
  18. set.add(signnames, "Zerstörer");
  19. set.add(signnames, "Kreuzer");
  20. set.add(signnames, "Schlachtschiff");
  21. map.new("shipnames");
  22. map.add(shipnames, 2, "U-Boot");
  23. map.add(shipnames, 3, "Zerstörer");
  24. map.add(shipnames, 4, "Kreuzer");
  25. map.add(shipnames, 5, "Schlachtschiff");
  26. map.new("shipamounts");
  27. map.add(shipamounts, 2, 4);
  28. map.add(shipamounts, 3, 3);
  29. map.add(shipamounts, 4, 2);
  30. map.add(shipamounts, 5, 1);
  31. map.new("createships");
  32. map.add(createships, 2, 4);
  33. map.add(createships, 3, 3);
  34. map.add(createships, 4, 2);
  35. map.add(createships, 5, 1);
  36. for(i = 0; i <= list.getSize(ships) - 1; i++) {
  37. tempship = list.getIndex(ships, i);
  38. tempamount = map.get(shipamounts, tempship);
  39. shipsperplayer += tempamount;
  40. fieldsperplayer += tempship * tempamount;
  41. }
  42. for(i = 1; i <= maxplayers; i++) { //Erstelle für alle Spieler...
  43. for(h = 1; h <= shipsperplayer; h++) { //...und für alle Schiffe...
  44. set.new(concat(i, "ship", h)); //...ein Set, indem die Locations der Schiffe gespeichert werden
  45. }
  46. }
  47. overload("minigames/knockfight/knockfight");