You could relate this to a spellcaster having spells, and you want to arrange them from highest level to lowest to display on a frame. I'm absolutely clueless as to what sort of html / code to build in order to make a variable number of tables with the data appear. In truth, I'm not sure how to even tell the code to get the information for the exact number of shadow amps inside the core json.
I assume I'd need some sort of way to count the number of jsons within the json and then use a foreach to get the properties?
Code: Select all
[h: shadowAmpList=getProperty("Amps")]
[h, foreach(Amp,shadowAmpList,""), CODE:{
[h: ampName=json.get(Amp,"Name")]
[h: ampLevel=json.get(Amp,"Level")]
}]
The next step, which I'm clueless about, is how to make it take that information, and create a frame that -only- has a table for each of the appearing Amps, no more, no less.
Any help (even just pointing at the right part of the wiki) is greatly appreciated.