options:
prefix: &f&l[&4&lTrendus&f&l] »
permission: staff.bc
variables:
{message1} = "{@prefix} Remember to use /Trendus Discord to join our awesome discord server!"
{message2} = "{@prefix} Check out our website by using the following command /Trendus Website"
{message3} = "{@prefix} Check out all the different gamemodes by using /Trendus Gamemodes"
{game.bedwars} = true
{game.PVP} = true
{game.survival} = true
{game.flatsurvival} = true
{game.powershells} = true
{game.dungeons} = true
{game.boxfighter} = true
every 5 seconds:
broadcast {message1}, {message2} or {message3}
-- this prints the image shown it should print a other thing
else if arg-2 is not set:
message {@prefix} [
if {game.bedwars} is true:
message "Bedwars: Open"
else if {game.bedwars} is false:
message "Bedwars: Closed"
if {game.PVP} is true:
message "PVP: Open"
else if {game.PVP} is false:
message "PVP: Close"
if {game.survival} is true:
message "Survival: Open"
else if {game.survival} is false:
message "Survival: Closed"
if {game.flatsurvival} is true:
message "FlatSurvival: Open"
else if {game.flatsurvival} is false:
message "FlatSurvival: Closed"
if {game.powershells} is true:
message "PowerShell: Open"
else if {game.powershells} is false:
message "PowerShell: Closed"
if {game.dungeons} is true:
message "Dungeons: Open"
else if {game.dungeons} is false:
message "Dungeons: Closed"
if {game.boxfight} is true:
message "BoxFight: Open"
else if {game.boxfight} is false:
message "BoxFight: Closed"
]
-- this is the error
#i got 1 fail and one error in my script
1 messages · Page 1 of 1 (latest)
%{prefix}% I think
can you try %[@prefix]%
No..
I am confusing
And options ex.: {@option} don't need %%
to all players
bro boutta flood the chat
5 seconds it most likely for testing
fair
Okay, I guess you can't use options inside the variables section
Use 3 sends
send (join {@prefix} and {messageVar}) by " "
then use a list
not 3 different variables
Also, you could use on load instead of the variables sections so you're able to use the prefix
Use your brain please
Then get one?
{list::*}
That's called a list
Don't copy and paste what I say, use your brain please
oh
You have to add values to the list obviously
You gotta realize this is not lua
set {var} to value
set {list::val1} to value1
add value2 to {list::*}
like i tried this before
Once again, I suggest using a list for that game code
{games::*}
Loop, check if it's true, send
No
I'll give you an example
on load:
set {-testList::value1} to "val1"
set {-testList::value2} to "val2"
command test:
trigger:
loop {-testList::*}:
send loop-value #Would be val1 and val2
send loop-index #Would be value1 and value2
ohh
You want to send a random message every time right?
With lists you can get a random element
okk
send (random element out of {list::*})
```This would send a random value inside the list
ok
so
would be like this
right
To who
?
send something to ...
It's not on the image
tho it aint sending
Did you reload
No, it's not
hmm
k
You don't have - in the every x seconds
Add a &r after
how would i then
I'll give an example
ok
on load:
set {-types::type1} to true
set {-types::type2} to false
command types:
trigger:
loop {-types::*}:
send "True" if loop-value = true else "False"
1 line ifs
heh
wait so
set {-types::type1} to true
and the other to false
but
how would i put the values into there
....
Look at your code, and see how you can implement it
heh
On the on load
Don't copy and paste dude
Read the code, understand, implement it in your own way
No
eee
What you have -> {gamemode.creative}
What you need to know to change to list -> {listName.value}
#What you have
{listName.index} = value
#Changes
set {listName::index} to value
if true then = "Open"
if false then "Close"
k
so
the list
is called game
right?
index is
bedwars, dungeons, powershells and so on
if im right
Yes
ok
so if i wanted to display the game statuses like this
{@prefix}
Bedwars: Open/Closed
PVP: Open/Closed
Survival: Open/Closed
FlatSurvival: Open/Closed
PowerShells: Open/Closed
Dungeons: Open/Closed
BoxFight: Open/Closed
First, do this
No
or should all be without numbers
Understand it, implement it
Example
#From
{game.creative} = true
#To
set {game::creative} to true```
oh
tho
waitt
ohhh
wait
ok
so
to should be =
right?
k
so
thats right
if im right
@digital schooner
tell me how dumb i was this time
...
That's correct
Now read this, understand and try to implement it into a way you can use it to display the name of the game and it's status (The loop)
with or without loop?
You'll be using the loop to display
k
So, understand the loop, you don't need the load part now
k
nearly
@digital schooner
how would i join em back
so its like
sends the right thing
..
You don't set it to "True"
You set it to true
And switch loop-index with {@prefix}
You want
Prefix
game - status
not
game
prefix - status
Yes I do
ok
Play with the loop, see what does what
loop-value is either true/false
and
loop-index is the name of the game
I told you
You don't set the values to a string
You set it to a boolean
true or false
not "true" nor "false"
- you can do
send {@prefix}
No need for quotes nor player since it will default to the command sender
Yes
Oh
Okay nvm, you do need ""
Unless you use "" on the option it self
k
so
it sends this
not like
all gamemodes and the :
and it sends open
all the time
Do you set everything to true?
That doesn't help
You do set everything to true....
where
wait
ohh
yes i do
mhm
i set all to true
but with command
it should close
does it mess it up?
@digital schooner
What
With something called where filter
#Example
send "only players with sk.perm can see this message" to all players where [input has permission "sk.perm"]
input being each player in this case
Read it
remove what?
heh
Jeez man, this is english for christ sake
i dooo
It's ONE LINE
ik its one line
Jeez dude
forgot to remove that
bro
now i like
litteraly read it
PLLSSSS
HELPPP
MEEE
?
That makes 0 sense
why?
normally
arg-3 should be [<text>]
that would work
tho
cuz im using arg-3
for string
for the other stuff
What?
and this is error with teleport script
Is there any error message?
nope
Try "%world of input%"
heh
oh
else if arg-3 is "Close":
if player is op:
if {game.bedwars} is false:
send "{@prefix} Bedwars is already closed." to player
else:
set {game.bedwars} to false
broadcast "{@prefix} Bedwars is now closed."
teleport all players where ["%world of input%" = "BedwarsLobby"]
else:
message "{@prefix} &4You dont have permission to use this commmand!"
Oh crap
hm?
teleport all players to world("name") where ...```
k
teleport all players to spawn of world("Spawn") where [world of input = "NicosAdventure"]
ok
teleport all players in world "BedwarsLobby" to spawn of world "Spawn"
that worked
k
so
broadcast script
ik how to make one
tho
its just
cuz
i made it like this
all arguments are strings
No?
yes?
Okay then use text
No