#Map Picker

1 messages · Page 1 of 1 (latest)

delicate flume
#

what's the issue?

fathom bronze
#

^

sour dew
# delicate flume what's the issue?

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?)

sour dew
fathom bronze
#

so just have a list of the characters

#

and remove 1 each time or whatever

sour dew
sour dew
#

and how do I make sure it always will end up on {Winner}

fathom bronze
#

you could store the index position of the map name i guess but first figure out the animation

#

and please dont ping me again

sour dew
#

i didnt ping you?

fathom bronze
#

3 reply pings

sour dew
fathom bronze
sour dew
fathom bronze
#

whenever you want to know how to do somehting, the docs are the first thing you check

sour dew
fathom bronze
#

figure that out afterwards

#

one step at a time

sour dew
#

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?

fathom bronze
#

not the tuske expr!

sour dew
fathom bronze
#

thats the algorithm you need to create

#

the docs dont pre-generate algorithms for you, only show syntax for effects and such

sour dew
#
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?
fathom bronze
#

try running the examples

sour dew
#

thats all i got

fathom bronze
#

okay

sour dew
#

it just replaces my .'s with |'s and adds them to a section?

fathom bronze
#
join "a","b","c" by "/" = "a/b/c"```
sour dew
#

okay?

fathom bronze
#

thats what split and join mean

sour dew
#

so how do I add that into my code? when i run a command with that code doesnt do anything?

fathom bronze
#

and if you literally pasted those

#

skript should parse them as conditions

sour dew
#

command /substring <text>:
trigger:
split "an example string" by " " = "an", "example", "string"
join "a","b","c" by "/" = "a/b/c"

fathom bronze
#

yeah

sour dew
#

dont do anything?

fathom bronze
#

I'm telling you what the expressions return

sour dew
#

huh?

fathom bronze
#

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"

fathom bronze
#

with what?

sour dew
#

with ^

fathom bronze
#

i've shown you how splitting and joining strings work, try making some progress based on that

sour dew
#

yes but im saying how do i set a vairable to that

#

like do i do set {_a} to join "a","b","c" by "/"

fathom bronze
sour dew
#

that just took me to a website?

#

no code?

#

should i play the video on the website?

fathom bronze
#

yes

sour dew
#

okay

#

its a discord thing?

fathom bronze
#

im telling you to try your code and see if it works...

sour dew
#

im not subbing to you sorry :)

#

or liking

fathom bronze
#

???

sour dew
fathom bronze
#

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!

sour dew
#

i scrolled to the bottom and couldnt find it

#

he has a lot of videos

fathom bronze
#

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

sour dew
#

i did try it

#

it worked

fathom bronze
#

well tehre you go

sour dew
#

and i still have no clue how to do my issue

fathom bronze
#

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

sour dew
fathom bronze
#

i showed you the docs page and an example

sour dew
#

error:

fathom bronze
#

dude.

#

copy-pasting discord messages will not result in functional code

sour dew
#

what will then?

fathom bronze
#

putting in effort

sour dew
#

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

sour dew
fathom bronze
#

thats the same thing

sour dew
#

no

#

you said "an", "example", "string"

#
  1. it doesnt have "

  2. it has and in it

fathom bronze
#

Yes, you get those 3 substrings

sour dew
#

no i get an, example and string

fathom bronze
#

because skript doesnt show the " when sending messages

sour dew
fathom bronze
#

when you run broadcast "hi", hi is sent. the " just tells skript whats inside that is a string

sour dew
fathom bronze
#

its mutual

sour dew
#

who is rel?

#

rel help meeee

fathom bronze
#

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

sour dew
glass lark
#

like x8ight sent

sour dew
fathom bronze
sour dew
#

I JUST NEED TO KNOW HOW TO ADD 1 LETTER TO THE FRONT AND REMOVE 1 FROM THE END!

fathom bronze
#

there's no magic one-line solution you can copy-paste from the docs.

#

is that the answer you want?

sour dew
fathom bronze
#

we cant help you (and we certainly wont want to) if you dont put effort in yourself

sour dew
#

i did

fathom bronze
#

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

sour dew
#
    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::*}%"```
fathom bronze
#

🎉 keep playing around

#

im actually happy to be proven wrong

sour dew
#

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```
fathom bronze
#

you're making up syntax now

sour dew
#

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

fathom bronze
#

"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.

fathom bronze