WB Coding Town Assignment

正在查看此主题的用户

Slim Shady

Recruit
I'm trying to figure out how to assign towns,castles and villages to different factions, for example Dhirim is a khergit town instead of swadian
 
解决方案
You have to look into module_scripts.py, there the first script "game_start". First it gives centers to a faction like in
插入代码块:
      (call_script, "script_give_center_to_faction_aux", "p_castle_48", "fac_kingdom_6"),
The villages are distributed based on distance to castles/towns. Later the centers are assigned to the Lords
插入代码块:
     #Now give towns to great lords
      (call_script, "script_give_center_to_lord", "p_town_1",  "trp_kingdom_4_lord", 0),
In short: Check that part on the script that initializes how a new game works and you will see how things like center distribution, original faction (for wars goals), lords, etc, are done.
You have to look into module_scripts.py, there the first script "game_start". First it gives centers to a faction like in
插入代码块:
      (call_script, "script_give_center_to_faction_aux", "p_castle_48", "fac_kingdom_6"),
The villages are distributed based on distance to castles/towns. Later the centers are assigned to the Lords
插入代码块:
     #Now give towns to great lords
      (call_script, "script_give_center_to_lord", "p_town_1",  "trp_kingdom_4_lord", 0),
In short: Check that part on the script that initializes how a new game works and you will see how things like center distribution, original faction (for wars goals), lords, etc, are done.
 
点赞 0
解决方案
后退
顶部 底部