Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

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?

(+1)

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
};

Thank you very much it was quite helpful!

Sorry to bother you again but what do i do if my title screen doesn't work? it says that my sylvian affiliation mod doesn't work (named Ty_FnHMaxSylvian.js), it says that the OnMapLoaded doesn't work, when i remove the mod from the mod loader the game works

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.

(+1)

Thank you very much!