# @Luke I need help related to your work!

**URL:** <https://forum.makecode.com/t/luke-i-need-help-related-to-your-work/43139>\
**Category:** Help\
**Tags:** game, art\
**Created:** [April 5, 2026, 8:49pm UTC](https://forum.makecode.com/t/luke-i-need-help-related-to-your-work/43139 "2026-04-05T20:49:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [April 10, 2026, 5:54pm UTC](https://forum.makecode.com/t/luke-i-need-help-related-to-your-work/43139/3 "2026-04-10T17:54:35Z")

</div>

Soooo I’m kinda remaking the code of how I make the cards as they were coded very messily…but I was ALREADY making a huge post explaining it so hopefully i can get that done soon!!

> **old code ioi**
>
> ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/2/4/24cba3e215aee6c44da769fc3191792668327dfd.png)

If you want information on how I made the map look at my topic for it: [Random Map Event Generation 🗺 (like Slay the Spire)](https://forum.makecode.com/t/random-map-event-generation-like-slay-the-spire/29739)

Essentially, I am going to be changing how i store cards, from a single number to an array, as with an array I can store more distinct data for each card

The array is helpful as I can use the sequence as a sort of code that will correspond to triple nested arrays for the card image and the card properties like what type it is and how much energy it consumes. Storing all information about a card in nested arrays is helpful as it makes the system very flexible, rather than adding on infinite if statements and code I can just add on to the array.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/2/621189aa41110adef734b72e52497825e07a9729.png)

> [@TheEarth](#):
>
> he used block objects to store the deck of card to the player and also the hp and max hp. I

Nope, I only used it for retrieving the data for enemies (which were already stored as nested arrays) I do plan to use block objects in the new card system though

---

_[View the full topic](https://forum.makecode.com/t/luke-i-need-help-related-to-your-work/43139)._
