So here's what I need: when I click on certain cells in a spreadsheet in LibreOffice Calc, the background color changes to black. If I click again, it changes back to white. At first, all relevant cells are white. When document is saved, it should save the current condition so it persists when I reopen.
I've seen how to create a macro, but I don't know the coding language used here. I'm not completely incapable of programming (I work with php), but I'm not familiar with this.
I even found two close solutions on the web, but:
Change color of cell with mouse click in Excel This is actually for Excel, and unfortunately because they went straight to the solution with little explaining, I don't know what each line does and couldn't modify it.
https://forum.openoffice.org/en/forum/viewtopic.php?f=9&t=46389#p214370 This document has the solution with a different criteria (it changes cells to many different colors in an array, and counts clicks so it changes again after a few), but I couldn't figure it out because it's all commented in russian, and my russian is a little rusty... if I knew what part of the code determines which are the right cells to change and toggle with each click instead of counting several clicks, I'd have a solution I suppose.
I'm trying to design a simple character sheet for the Vampire the Requiem game on Calc, in a way that it's light, fast and easy to fill. World of Darkness traits come in dots, so to make it more easily fillable, I'd click cells instead. At least that's my idea. I suppose it could be done with PDF forms but I don't know how to work with those either...
Thanks in advance.