It's fine, it's also more readable when questions are separated in case i have to give you a detailed explanation.
I will assume this is mainly for termina given the chalk question, so i'll tell you about that.
Affinities in Fear & Hunger 2: Termina are stored within variables starting from id 261 to 266(so long as i didn't miss anything).
261 - God of Fear & Hunger
262 - Alll-mer
263 - Rher
264 - Sylvian
265 - Vinushka
266 - Gro-goroth
so you need to include the following if you want to alter their values.
$gameVariables.setValue(variableId, value);
Example:
$gameVariables.setValue(261, 100); // Increase affinity with the God of Fear & Hunger by 100 points.
To include it in the game and apply the effect you can put the line/s inside your custom mod or create a new one with a similar structure to the soul stone one if you want to keep things more organized.
Example:
Scene_Map.prototype.onMapLoaded = function() {
TY_Scene_Map_OnMapLoaded.call(this);
const id = soulStoneId();
$gameParty.gainItem($dataItems[id], 99);
$gameVariables.setValue(261, 100); // your code line/s go here
};