Ok im pretty sure im going to sound annoying because i dont write all my questions/comments at once but, is there any way to increase affiliations with gods via mods?
Viewing post in Cheshire's Fear & Hunger Mods comments
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
};
Oh, you are right. I forgot to tell you to include this line:
const TY_Scene_Map_OnMapLoaded = Scene_Map.prototype.onMapLoaded;
Above this line, in order to get the mod to be functional.
Scene_Map.prototype.onMapLoaded = function() {
Also, if you don't plan on using the item gain functionality in this mod, specifically these 2 lines:
const id = soulStoneId();
$gameParty.gainItem($dataItems[id], 99);
I would suggest you to remove them, otherwise the affinity mod won't work.