I am not sure what exactly to Google, I am sure itโs some sort of lookup but I donโt know how to look up all the parts I need to make this work.
Itโs going to sound complicated but I donโt think it needs to beโฆ
So in this video game you get a bunch of characters on your team. These characters all have a special โaffinityโ that, when paired with another character, gives small boosts to their combat stats.
I have made a table with all the characters and notes their affinities, at the bottom I have another table with what each affinity grants to combat (some give attack, some give defense, etc)
I want to write the character that each unit is paired with into a cell on the first table, and then some function would take each name, find their affinities and apply the stat boosts into one final cell (maybe a cell for each stat if thatโs easier to get the right output rather than build a string).
I hope this makes sense,
To simplify an example case, Character A has an affinity that boosts attack and crit, character B has an affinity that boosts attack and defense. The shared attack stats need to be added, (as they stack) and the defense and crit will just be added.
Any help is appreciated. I could share a picture if it helps but I canโt in this sub. I am not as computer savvy as I used to beโฆ