I only used “1.1” as an example. I have a database already built in another app. I’ve set it up so I can continue to add more items to that database and it will automatically turn the entire database (including updated and new items) into a .JSON, which I then load into the game at start-up.
to provide more detail and context:
[
{
“Name”: “Recon Drone”,
“Faction”: “Terrans”,
“Art”: “”,
“Type”: “Tech & EQ”,
“Sub-Type”: [ “Drone” ],
“Rarity”: “Uncommon”,
“Rules/Text”: “When Recon Drone enters the battlefield, choos 3 cards from target opponents hand and then the reveal those cards. ‘Flying’”,
“Att”: 0,
“Def”: 1,
“SDC”: 0,
“HP”: 1,
“Attributes”: [ “Flying” ],
“Buffs”: “”,
“I”: 2,
“G”: 2,
“Hunger”: 0,
“Influence”: 0,
“Gold/rnd”: 0,
“Food”: 0,
“Art.http”: “”
},
{
“Name”: “Tango-Six, 3rd Inf.”,
“Faction”: “Terrans”,
“Art”: “”,
“Type”: “Combat Unit”,
“Sub-Type”: [ “Human” ],
“Rarity”: “Common”,
“Rules/Text”: “When Tango-Six, 3rd Inf. is deployed, group Tango-Six, 3rd Inf. with target Champion you control. Otherwise sacrifice Tango-Six, 3rd Inf. then deal its Att to target enemy combat unit without Flying.”,
“Att”: 1,
“Def”: 1,
“SDC”: 0,
“HP”: 1,
“Attributes”: ,
“Buffs”: “”,
“I”: 0,
“G”: 2,
“Hunger”: 1,
“Influence”: 0,
“Gold/rnd”: 0,
“Food”: 0,
“Art.http”: “”
},
{
“Name”: “Heavy Tank”,
“Faction”: “Terrans”,
“Art”: “”,
“Type”: “Combat Unit”,
“Sub-Type”: [ “Ground-Vehicle” ],
“Rarity”: “Rare”,
“Rules/Text”: “‘Armored’ When Heavy Tank is Deployed, put 3 counters on it. (tap), remove 1 counter → This unit deals X SDP to one target enemy structure or Armored CU where X = this cards att.”,
“Att”: 3,
“Def”: 3,
“SDC”: 3,
“HP”: 3,
“Attributes”: [ “Armored” ],
“Buffs”: “”,
“I”: 6,
“G”: 5,
“Hunger”: 1,
“Influence”: 0,
“Gold/rnd”: 0,
“Food”: 0,
“Art.http”: “”
}
]
Those are a few “items” in the database, and that is the exact structure atm. before your most recent response I switched from the parant being a structure to an array instead. My thinking was to use the extension “array tools>array search>index of a string” function. Basically trying to use the “object stack” ext. to take a list of saved items (the cards the player has collected so far and arranged into a Deck), and build said deck on the fly, before every match. only problem now is whenever I try to get the index of a string from the main list, no matter what I’ve tried, it always returnes “-1”
I’ve tried this
…and this
it always returns -1 and I’m stumped lol.
btw, Thank You, for taking the time to help me out.