I am trying to create a google spreadsheet that will list and display creatures from a game I play.
In this project i have custom function that you can call from the spreadsheet like this:
=getAllMons("" ,"","" ,"" ,"" ,4, "beast","", "" ,"", "", "", "tail-the-last-one", "horn-imp")
with multiple different search params.
My issue is that the first column should contain the image of the monster. I thought that building a formula in the array as a string would work and render the images when geAllMons is called from a sheet. But it doesn't
Here is an example of one row in my arrays:
var Stats = [ '=image(\"' +a.image +'\", 1)', a.id, a.name, a.class, a.stage,
a.level, a.exp, a.pendingExp, a.breedable, a.breedCount ,
a.stats.hp, a.stats.speed, a.stats.skill, a.stats.morale,
a.parts[0].name, a.parts[0].class, a.parts[0].type, a.parts[0].stage,
a.parts[1].name, a.parts[1].class, a.parts[1].type, a.parts[1].stage,
a.parts[2].name, a.parts[2].class, a.parts[2].type, a.parts[2].stage,
a.parts[3].name, a.parts[3].class, a.parts[3].type, a.parts[3].stage,
a.parts[4].name, a.parts[4].class, a.parts[4].type, a.parts[4].stage,
a.parts[5].name, a.parts[5].class, a.parts[5].type, a.parts[5].stage,
a.owner, a.sireId, a.matronId, a.birthDate, a.title
];
I pretty sure the issue is that the content is still in an active formula because when i select the whole data and copy paste as plain text. Image formulas get processed and I get image. It also work when i run my function from google app script editor, but this is not a solution because I dont want people to have to go in script editor every time they want to search for a different thing, also a lot lot less intuitive.
I have searched and most solution are custom function that you run from script editor and append the image with a new row or use a method to setValue, setImage. Those dont work with in-sheet custom functions.
Any body have an idea? Would be very appreciated.

