• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Yurichenko

Captain
Sep 8, 2021
338
460
Hi, I don't know if this is the right place for this question so sorry if I was wrong.

I'm trying to make my own mod but I don't have much programming or scripting experience so I'm having a hard time creating new things that don't exist in the game. I need some help, could experienced modders give me advice on how to achieve certain things?

To start with, I need to create a reason of war that:
-It is possible for any member of the federation if the president of the federation has a lower power level than him.
-If the federation leader loses the war, the member who used the war cause becomes the new federation leader.
-If the leader of the federation had vassals, protectorates or tributaries, they belong to the winner of the war.
 
  • 1Like
Reactions:
1. I think yes, but it would also require editing game rules on who can start war with who, because normally you cannot attack fellow federation member. You would also have to make a script kicking attacker out of federation probably.

2. Yes, there's an effect for that. https://github.com/OldEnt/stellaris-triggers-modifiers-effects-list

3. Yes, There are effects for that.

Stellaris Modding Den Discord

https://stellaris.paradoxwikis.com/Modding_tutorial
First of all, thanks for answering. Second, for point 1. Would it really be necessary to change the rules of the game? If I remember correctly, in the Hegemonic federation, the members choose a cause of war against the president of the federation to be able to leave the federation in case he refuses to accept it.
Is new war motive could not work in a similar way, only changing the final result?