Example
Tarot Card Interaction with Javascript
I didn't post this in 2025, but it has been on my mind since Challenge #213, about eight years ago. I'm a very slow learner. :)
I recall chatting with Ron Price and Jonathan Hill about this (who posted before me), but I never had the brain power to figure out how to do it. Now with AI and a little more familiarity with javascript, I was able to create the interaction.
This interaction simulates a tarot card reading using a deck of 22 cards from the major arcana (the Fool is card #22). It draws one card each for the past, present and future. The obstacle I couldn't get over was making sure the cards don't repeat as they are drawn. In ELC #213 I cheated a little by splitting up the deck into 3 sections of 7-8 cards for Past, Present and Future, so the cards would not repeat.
In this new file, the cards don't repeat ever based on the javascript trigger that solves for that...or so it seems. It's a win for me because it has bothered me for eight years that I couldn't figure it out.
I attached the file below if you want to torture-test it. I'll take it further in 2026 if there is a challenge that it fits--like a number variable challenge.
7 Replies
- Jonathan_HillSuper Hero
That looks like a pretty robust solution to prevent repeats, Jodi. So pleased you were finally able to bring this idea to life. A little JavaScript goes a long way!
- JodiSansoneCommunity Member
I still have your "proof of concept" file you sent me after we chatted about it. I just was never able to wrap my brain around all the triggers. The JS works, I just can't say why it works. :)
- Jonathan_HillSuper Hero
Ah yes! I remember that manual method to prevent repeating numbers. So much easier with Javascript now!
- ThierryEMMANUELCommunity Member
Such perseverance!
My very first draw was “the Death,” “the Fire from Heaven,” and “The Hanged Man.” 😲 Do you provide an interpretation manual? Or a lucky charm to ward off bad luck? Please!- JodiSansoneCommunity Member
Wow, that is quite a card draw! It's not as bad as it might first appear. I'm not a Tarot reader, but I understand that Tarot is a language of symbols, a quiet conversation between image and intuition. It does not shout answers or bind the future in certainty. Instead, it reveals patterns—threads woven through experience, memory, and possibility.
Each card is a mirror. Together, they form a map—not of events, but of understanding. Tarot does not tell you what must happen. It shows you what is present, what has shaped you, and what may unfold if the current path continues.
To read tarot is not to predict, but to listen.
Past: The Death card is not necessarily a bad thing. The Death card in the past might mean Death once passed through this situation, ending a chapter completely. What was shed made space for what could not yet exist.
Present: The Tower/Fire from Heaven in the present could mean that lightning strikes now, shattering illusion and exposing truth. Disruption clears what could not endure.
Future: The Hanged Man in the future could mean a shift in perspective will unlock insight. Revelation could follow surrender.
I'm working on a full tarot reading for a debut in January. With a 3-card draw, there are over 9,000 combinations of cards, so I have to get my head around how to set it up.
- DianeBullock-32Community Member
Thank you for the free reading and it was a positive start to the year, including the wheel of fortune! Happy new year :)
- ChrisHodgsonCommunity Member
Well done bringing this concept to life, Jodi! Great as always to see you having another creative year building with Storyline 🚀
