I think I wrote that in python and posted it in the other topic.
wait⦠what are you guys talking about? iām not that smart in blocks and stuff.
Epi320
December 13, 2024, 1:01am
23
What topic?
Which one did you post it in.
Here_to_help:
Hereās an explanation:
First, we have property āstringoftextā . This property holds the original strand of text, and is edited during the splicing period to only contain the part we havenāt worked on yet. Next, thereās āsubstringproperty_ā . These are the properties that hold the codons that we spliced (i.e. abc or def). You will need more or less depending on how long the strings are (you wonāt have to change any code based on that). Last, we see the āsubstring#ā property. It just adds one after each splice so that we are updating the next substring_ next time, not overlaying an old one.
Now to look at the process. The first part just tells if we have more than 3 letters left. Letās first assume thatās true. Starting out, the substring# should have a default of one, so we are setting the text for substringproperty1 . We are going to get the first ones until the comma, so starting from the first letter until the letter that is before the comma (comma # - 1). Faboulous! Then in the second part, we just set the new text. This is done by deleting the text all the way including the comma, but not after that. This will make sure we can start at the first letter next time. We then adjust our substring# and broadcast to recur.
Now letās assume weāve done a lot, and weāre down to only two letters left. This will update the final substringproperty_ with all that is remaining. We then reset all of our properties that need to and broadcast that weāre done!
I didnāt test this out but it should work (lol I even layed out why it should above). If you have any questions or it isnāt working, just drop a reply and Iāll help you when Iām available!
omg THANK YOU HERE TO HELP!
Iāma read it now
1 Like
What are you gu- (brain shuts down)
1 Like
but seriously, what is this
Epi320
December 13, 2024, 1:04am
26
wait a sec, Iām still trying to comprehend this.
1 Like
me too, I literally donāt know what substrings are
Epi320
December 13, 2024, 1:07am
28
[Quick edits]
Welcome to The Guide!
Today, weāll be focusing on the block saving powers of text strings!
Text strings are extremely underrated and not very well known. They are technical, but once you begin to understand them, Iām sure you can think of all sorts of things they can be useful for!
In this guide, I will give all of my knowledge of what text strings are, how they work, and how you can use them in your games! Strap yourselves in, and letās dive into the technical side of text striā¦
This should help.
Here to help, I think I get it.
2 Likes
Epi320
December 13, 2024, 1:13am
29
OMG I FINISHED READING I CANNOT BELIEVE THAT I DIDNT SEE THIS BLOCK
omg @Here_to_help I didnāt see this block, so i kinda felt bad that I was giving yāall an impossible challenge.
It turns out, the impossible challenge was finding this block.
lol, basically, I didnāt see this block, so I was thourghly frustrated, and I made a help topic, putting this impossible problem out to the universe.
Little did I know, here to help dazzles us again.
Now, @pixie_dust1 what questions do you have on this? I will try to explain it the best I can
you know the coder is fantastic when you think this after you read it āWell, this is very simple!ā
1 Like
Epi320
December 13, 2024, 1:27am
31
bsa? Whoās that?
(yes ik this is off topic, but Iām curiose)
BrownSnowAlien. Now letās let this close.
(I did close it right? @Here_to_help )
Also you get an
EPI PEN OF HONOR (because I feel like giving out my 5th pen. Prob my last in a long long time)
2 Likes
system
Closed
December 13, 2024, 4:27am
32
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.