#Map Picker
1 messages · Page 1 of 1 (latest)
^
like I need that to do it automaticly I dont have any code right now and I don't know where to start. I need it to like rotate (I think people said from like splitting it or something?)
^
which is {Maps::*}
okay but i need to like add some back to the start so it loops around?
and how do I make sure it always will end up on {Winner}
you could store the index position of the map name i guess but first figure out the animation
and please dont ping me again
i didnt ping you?
3 reply pings
yeah thats why im asking idk how to do that
set {_characters::*} to ... #<-- figure this out, look at the docs for split/join
loop {_characters::*}
#do some more stuff here later```
yeah I still have no clue what to do after loop {_characters::*} and what to replace the ... with?
whenever you want to know how to do somehting, the docs are the first thing you check
and the #do some more stuff here later?
I got this?
set {_s::*} to split "Hi, this text will be splitted in 3 lines" by 10 characters
I dont wanna like split it into 3 lines?
or replace stuff in it
yeah and this other stuff didnt help?
not the tuske expr!
that still doesnt show how to remove the first letter in it and add 1 to the start?
thats the algorithm you need to create
the docs dont pre-generate algorithms for you, only show syntax for effects and such
split %string% (at|using|by) [[the] delimiter] %string% [with case sensitivity] [without [the] trailing [empty] (string|text)]
%string% split (at|using|by) [[the] delimiter] %string% [with case sensitivity] [without [the] trailing [empty] (string|text)]
regex split %string% (at|using|by) [[the] delimiter] %string% [without [the] trailing [empty] (string|text)]
regex %string% split (at|using|by) [[the] delimiter] %string% [without [the] trailing [empty] (string|text)]```
How am I suppost to get something from that?
try running the examples
okay
it just replaces my .'s with |'s and adds them to a section?
join "a","b","c" by "/" = "a/b/c"```
okay?
thats what split and join mean
so how do I add that into my code? when i run a command with that code doesnt do anything?
command /substring <text>:
trigger:
split "an example string" by " " = "an", "example", "string"
join "a","b","c" by "/" = "a/b/c"
yeah
dont do anything?
I'm telling you what the expressions return
huh?
I'm saying broadcast (join "a","b","c" by "/") will send the message "a/b/c"
and that if you were to split "an example string" at a space, you would get "an", "example", "string"
Correct!
okay....
so go on?
with what?
with ^
i've shown you how splitting and joining strings work, try making some progress based on that
yes but im saying how do i set a vairable to that
like do i do set {_a} to join "a","b","c" by "/"
yes
im telling you to try your code and see if it works...
???
at the end of the video you put please subscirbe and like
not "me"
this is a clip from (im 99% sure) Bill Wurtz's youTube.
Its a nice little video thats sent when people want to know if code will work... and decide not to test it to find out!
im note sure what you're confused about.
You want to know if a line of code will work. So go run it and see what happens
well tehre you go
you know know how to split and join strings--the main thing from this is if you split at "" you will get a list of all the characters.
Now you just need to rearrange them and put them back together
.
-
I don't know how to spit and join strings
-
I dont know how to rearrange them
i showed you the docs page and an example
error:
what will then?
putting in effort
i did but it was scuffed and was like just super big and didnt readd it at the start
but then wither hosting deleted my file for some reason so i need to redo
and still dont know how to add to start
correction:
and that if you were to split "an example string" at a space, you would get an, example and string
thats the same thing
Yes, you get those 3 substrings
no i get an, example and string
because skript doesnt show the " when sending messages
when you run broadcast "hi", hi is sent. the " just tells skript whats inside that is a string
can u help me @delicate flume he is making me go insane
its mutual
its clear you arent too familiar with skript, this project should likely be put on the backburner. Instead of begging others to think for you, you can be more productive by looking at a tutorial and playing around with some basic lines
no no ive been skripting for 2 years just not with spitting or whatever u said
i did like 1 hour ago
2 years of experience is astronomical overkill to answer your own question
I JUST NEED TO KNOW HOW TO ADD 1 LETTER TO THE FRONT AND REMOVE 1 FROM THE END!
there's no magic one-line solution you can copy-paste from the docs.
is that the answer you want?
huh
no i need help with
we cant help you (and we certainly wont want to) if you dont put effort in yourself
i did
so try recreating that then.
All you've done here is respond to all the information with "I still dont know how to do it", and the only code you've run is the example I gave you that you copy-pasted
no?
trigger:
set {_a::*} to join "a","b","c" by "/"
broadcast "%{_a::*}%"
set {_a::*} to split "different code that is not copy and paste" at " "
broadcast "%{_a::*}%"```
didnt work
trigger:
set {_a::*} to split "different code that is not copy and paste" at " "
broadcast "%{_a::*}%"
set {_a::*} to join "%{_a::*}%" by last letter removed```
you're making up syntax now
who do i speak to who can add the syntax?
okay ima go eat food plz help i just need to find the last letter when i remove and then add it back
"Syntax" is the programming equivilent of grammar. I can't say stuff like "Me go van park hot dog".
If I wanted that sentence to make sense, the proper way to structure it would be "I'll go in my van to the park and get a hot dog"
similarly, for code, there's a certain "programmer-y" way you have to write it.
Start with a simple loop, and try using the loop-iteration expression to count how many spaces you need to add or whatever

