WARNING: This Guide Goes Very In Depth
Read at your own risk
Using a property containing data, I can write something along these lines:
1\Content2\Some More Content3\Even More Content4\
The numbers and slashes are called separators. The numbers in the separators are called indexes and I use \ instead of / because they are less common. This can be used as lists, and more importantly, Number to Text Relations.
Number to Text Relations are ways to interpret values using a number. These numbers could be used to simply relate number 1 to mario, 2 to kirby or 3 to bowser, so instead of using blockcode for to make the value of the character I want to select with:
set property Character to Mario
set property Character to Kirby
set property Character to Bowser
I could use:
Now, a counter could be used to update the Selection Number and that number could be used to match the relation meaning only using one block I can create a character selection menu that would usually take X blocks to make where X is the amount of characters you want the player to select from plus one. Now, if I wanted to use a limited trigger loop and a counter, I could use a button to trigger the trigger and select the character, and I could store the data in a property.
So, if I have a property with:
1\Mario2\Kirby3\Bowser4\
And then match a number with the character, I would get the character that the number relates to.
Lists
I can also use this method for lists. Let’s say I’m using Pokémon for this example. The list could store a player’s Pokémon like this::
1\Pichu2\Charizard3\Squirtle4\
And by using a popup, I can display a player’s Pokémon.
I can even put lists into lists like this where x\ is the Pokémon separator and y] are the stats of that Pokémon:
1\1]Pichu2]Electric3]Unevolved2\Charizard
That’s it, thanks for reading, and if you enjoyed this guide, be sure to leave a
,