How to make permanent war between some factions ?

Users who are viewing this thread

Cruger said:
About permanent war.

Go into module_factions.py.

There you'll find a code somewhat similar to this (I don't have a Native module system around, so took the code from my own mod):
("kingdom_1",  "Kingdom of Aragon", 0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("kingdom_6", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xF32D06),
  ("kingdom_2",  "Kingdom of Castille",    0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("kingdom_6", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xF9EB03),
  ("kingdom_3",  "Kingdom of Leon", 0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xE765EF),
  ("kingdom_4",  "Kingdom of Portugal",    0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("kingdom_6", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0x60ADE3),
  ("kingdom_5",  "County of Toulouse",  0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xE56C0A),
  ("kingdom_6",  "Almohad Caliphate",  0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0x6B009D),
Here you can set the faction relations at the start of the game, as you can see most kingdoms start at war with kingdom_6 (Almohads), because their relation is set to -0.1 (-10 in game).
Stupid question, but where is it set to -0.1?  I mean, I can see where (I think) their relation with peasant_rebels is set to -0.1, but what part of that code sets their relation with other factions?
 
pampl said:
Stupid question, but where is it set to -0.1?  I mean, I can see where (I think) their relation with peasant_rebels is set to -0.1, but what part of that code sets their relation with other factions?

("kingdom_1",  "Kingdom of Aragon", 0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("kingdom_6", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xF32D06),
  ("kingdom_2",  "Kingdom of Castille",    0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("kingdom_6", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xF9EB03),
  ("kingdom_3",  "Kingdom of Leon", 0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xE765EF),
  ("kingdom_4",  "Kingdom of Portugal",    0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("kingdom_6", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0x60ADE3),
  ("kingdom_5",  "County of Toulouse",  0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xE56C0A),
  ("kingdom_6",  "Almohad Caliphate",  0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0x6B009D),
 
Back
Top Bottom