#Bedwars Skript
1 messages Β· Page 1 of 1 (latest)
function StartBedwarsGame(players: players):
set {_teams} to {"Red", "Blue", "Yellow", "Green"} # Define the list of team options
set {_playersAssigned} to "" # Initialize an empty list to keep track of assigned players
loop {_teams} as {_team}:
if {_teams} is empty or {_playersAssigned::*} is empty: # Check if there are no more teams left or if the player is already assigned
break # If no more teams are left or the player is already assigned, exit the loop
set {_player} to random player in players # Pick a random player from the list
remove {_player} from players # Remove the picked player from the list of available players
add loop-player to {_playersAssigned} # Add the player to the list of assigned players
teleport loop-player to location of {_team} # Teleport the player to the team location
call BedwarsStartDown(loop-player) # Call the function for each player individually
function BedwarsStartDown(players: players):
loop players:
set {_location} to location of loop-player
loop 5 times:
set {_check} to location of loop-player
if {_check} is not {_location}:
teleport loop-player to {_location}
wait 1 second
broadcast "&cThe game will start in 5 seconds"
wait 2 seconds
broadcast "&cThe game will start in 3"
wait 1 second
broadcast "&cThe game will start in 2"
wait 1 second
broadcast "&cThe game will start in 1"
wait 1 second
broadcast "&cGo! Good luck to all players!"
stop
i got some help from ai, but ive mostly been trying myself and just getting it checked by ai
alr
Use loop {_team}
so this?
function StartBedwarsGame(players: players):
set {_teams} to {"Red", "Blue", "Yellow", "Green"} # Define the list of team options
set {_playersAssigned} to "" # Initialize an empty list to keep track of assigned players
loop {_team}:
if {_teams} is empty or {_playersAssigned::*} is empty: # Check if there are no more teams left or if the player is already assigned
break # If no more teams are left or the player is already assigned, exit the loop
set {_player} to random player in players # Pick a random player from the list
remove {_player} from players # Remove the picked player from the list of available players
add loop-player to {_playersAssigned} # Add the player to the list of assigned players
teleport loop-player to location of {_team} # Teleport the player to the team location
call BedwarsStartDown(loop-player) # Call the function for each player individually
function BedwarsStartDown(players: players):
loop players:
set {_location} to location of loop-player
loop 5 times:
set {_check} to location of loop-player
if {_check} is not {_location}:
teleport loop-player to {_location}
wait 1 second
broadcast "&cThe game will start in 5 seconds"
wait 2 seconds
broadcast "&cThe game will start in 3"
wait 1 second
broadcast "&cThe game will start in 2"
wait 1 second
broadcast "&cThe game will start in 1"
wait 1 second
broadcast "&cGo! Good luck to all players!"
stop
I suggest you to start with something easier than bedwars. For example you can start with parkour or any other simple game and never use AI again, because AIs are not trained for writing skripts.
They are trained for writing python
they have the learning capability of a 5 year old
Fr
bro lets talk on #general or dms this is a thread
They arenβt trained for writing python
Thereβs far more information on python online
is this ai
Yes
π
yeah I started doing parkour, and did pretty well on that so Iβm just going to work my way up to it
Cool
Skywars is pretty simple
They grow up so fast π’

R u cracked now lol
I can actually make servers now π
instead of using ai !