Hey there fellow forumers!
It’s been a while since I’ve made a guide- I think the last one I made was my TD tug, and I’m pretty sure I posted that on my anniversary (June 5), so I’m glad to be back!
In reality, this guide should have been posted weeks ago, but I’m just writing it today and better late than never! I hope. Anyhow, I need to write this because I still need to write my series on block code and make chess and I eventually need to start ADOGAB. Anyhow, enough about me, it’s time to get to the guide!
Introduction
Hey there fellow creators! Anybody familiar with block code knows that there is a block to turn a number into a string, but what about the other way around?
This problem was posed by @pookiezach in the following post:
While one might reckon this to be impossible, we remember bh’s famous words and figure out how to do this little trick, a great precursor to my coding series! Let’s begin!
The System
Honestly, the system is near-impossible to create, but easy peasy to recreate! You just need to copy the following block code:
To clarify, var1 is basically your original text. This could be a string with a number somewhere in it, and that’s why I used the substring block to get the number I wanted. var2 is our output, obviously. And I changed it by 25 to prove it was a number, you can see for yourself that “25” + 25 returns 2525, but as you can see by my little celebration screenshot, var2 does become a number:
Now, obviously you don’t want to change your number, so you can just change it by -25 or changing it by 0 probably also works!
The Rationale (optional read)
So originally, bh had a different method to do this whole system, at once point once I which knew. But while I fail to remember the system, I do remember why his system works: variables in gkc do NOT like be text. Additionally, there’s a little bug in JS (which gimkit runs on) with new variables and multiplying text by numbers. So with this knowledge, I kinda just messed around and found out this way that essentially just confuses the system to let us do this!
- 0/10 or

- 1/10 or

- 2/10 or

- 3/10 or

- 4/10 or

- 5/10 or

- 6/10 or

- 7/10 or

- 8/10 or

- 9/10 or

- 10/10 or

- 11/10 or
/
As always, I am @Here_to_help, and Happy Gimkitting everybody!


