Think of it as a list.
0.0 Joke 1
>0.1 Joke 1 Punchline
1.0 Joke 2
>1.1 Joke 2 Punchline
The confusing thing is that in code it counts first intance as 1. So 0 is 1 instance. 1 is 2 instances.
["Joke 00"], array.at(0,0)
["Joke 00 Punchline"] array.at(0.1)
],[
["Joke 01"], array.at(1,0)
["Joke 01 Punchline"] array.at(1,1)
],[
We work in 3 dimensions x,y,z
In the above we working in 2 dimensions x,y and z we make it 1
So X is the number of cards and we randomize x
cardnumber = floor(random(1, numberofcards)
we choosing a random number between 1 and #Number of cards. I am not including 0 because I added a card1/totalcards and wanted it too look good. You can add random(0,totalcards) if you want.
And number of cards is how wide is x and we can find that out by using array.width
y is the 2nd dimension, the bullet points of the card.
We only have 1 now, which is punchline.
So it looks like this 2 jokes and 2 punchlines
(x,y,z) (2,2,1)
So to get joke 2 array.at(1,0)
and get joke 2 punchline array.at(1,1)
Make sense?
The trick is to play around with it. Once you master this, you won't ever look back.
Ninja'd by Manley23, I guess I took to long in the editor.