playersneeded = 2; maxplayers = 2; mapname = "Map1"; lobbyloc = read.location(""); gamesignloc = read.location(ggv("SERVER", "sinkshipsmap1")); add_if_name = "minigames/sinkships/sinkshipsmap1"; seablock = read.item("wool:11"); list.new("startlocs"); list.add(startlocs, read.location("games:4005.5:101:3993.5:0.0001:0.0001")); list.add(startlocs, read.location("games:3992.5:101:4011.5:180:0")); list.new("ships"); list.add(ships, 2); list.add(ships, 3); list.add(ships, 4); list.add(ships, 5); set.new("signnames"); set.add(signnames, "U-Boot"); set.add(signnames, "Zerstörer"); set.add(signnames, "Kreuzer"); set.add(signnames, "Schlachtschiff"); map.new("shipnames"); map.add(shipnames, 2, "U-Boot"); map.add(shipnames, 3, "Zerstörer"); map.add(shipnames, 4, "Kreuzer"); map.add(shipnames, 5, "Schlachtschiff"); map.new("shipamounts"); map.add(shipamounts, 2, 4); map.add(shipamounts, 3, 3); map.add(shipamounts, 4, 2); map.add(shipamounts, 5, 1); map.new("createships"); map.add(createships, 2, 4); map.add(createships, 3, 3); map.add(createships, 4, 2); map.add(createships, 5, 1); for(i = 0; i <= list.getSize(ships) - 1; i++) { tempship = list.getIndex(ships, i); tempamount = map.get(shipamounts, tempship); shipsperplayer += tempamount; fieldsperplayer += tempship * tempamount; } for(i = 1; i <= maxplayers; i++) { //Erstelle für alle Spieler... for(h = 1; h <= shipsperplayer; h++) { //...und für alle Schiffe... set.new(concat(i, "ship", h)); //...ein Set, indem die Locations der Schiffe gespeichert werden } } overload("minigames/knockfight/knockfight");