Family relations

正在查看此主题的用户

sepanol

Recruit
I created a new faction,

I created 20 new lords,  (i copied randomly from couple of factions, changed their names, just to try, but they have weird ages like 3, 7, 0 even minus :cool: and they have random fathers, brothers...

how can i create manually a family tree for each lord in this faction?

I have seen there was an easy way to do in script, like trp_1 ... father trp_2...
but i cant find it again

can anyone help
 
Looks like you missed to add some entries inside the 'initiate_aristocracy' script. I think it was inside that script, if it's not it's inside another script but age is processed by a script and you just need to add your new faction inside that one.
 
i think its here what ure talking about

(try_begin),
(is_between, ":cur_troop", "trp_knight_1_1", "trp_knight_2_1"),
(store_sub, ":npc_seed", ":cur_troop", "trp_knight_1_1"),
(assign, ":ancestor_seed", 1),

(else_try),
(is_between, ":cur_troop", "trp_knight_2_1", "trp_knight_3_1"),
(store_sub, ":npc_seed", ":cur_troop", "trp_knight_2_1"),
(assign, ":ancestor_seed", 7),

(else_try),
(is_between, ":cur_troop", "trp_knight_3_1", "trp_knight_4_1"),
(store_sub, ":npc_seed", ":cur_troop", "trp_knight_3_1"),
(assign, ":ancestor_seed", 13),

(else_try),
(is_between, ":cur_troop", "trp_knight_4_1", "trp_knight_5_1"),
(store_sub, ":npc_seed", ":cur_troop", "trp_knight_4_1"),
(assign, ":ancestor_seed", 19),

(else_try),
(is_between, ":cur_troop", "trp_knight_5_1", "trp_knight_6_1"),
(store_sub, ":npc_seed", ":cur_troop", "trp_knight_5_1"),
(assign, ":ancestor_seed", 25),

(else_try),
(is_between, ":cur_troop", "trp_knight_6_1", "trp_kingdom_7_1"),
(store_sub, ":npc_seed", ":cur_troop", "trp_knight_6_1"),
(assign, ":ancestor_seed", 31),



but i dont know whats the ancestor seed, and the number that increases by 6 every faction? is it something i should look for in another file? or simply will i write something like



(else_try),
(is_between, ":cur_troop", "trp_knight_7_1", "trp_kingdom_pretender..."),
(store_sub, ":npc_seed", ":cur_troop", "trp_knight_7_1"),
(assign, ":ancestor_seed", 37),

 
(else_try),
        (is_between, ":cur_troop", "trp_knight_7_1", "trp_kingdom_1_pretender"),
        (store_sub, ":npc_seed", ":cur_troop", "trp_knight_7_1"),
        (assign, ":ancestor_seed", 37),

This would be correct. No clue without further investigations what the ancestor seed is about. Just raise it by 6 points and everything works fine.
 
its irrelevant but there is one more thing, i added some new banners and the pretenders got some of the banners randomly, is it possible to give banners to pretenders precisely
 
As I have already mentioned in the other thread
Somebody 说:
(troop_set_slot, ":troop_no", slot_troop_banner_scene_prop, "spr_banner_whatever"),
 
i have another problem but i didnt wanna open new thread for it,

how can i make an additional bandit lair?

i want 2 forest bandit camps, one in current place and one far west, but couldnt figure out how, i made 2 forest bandit spawn points but i guess its not the solution
 
i found only this,

(try_begin),
(eq, ":center_too_close", 1),
(party_is_active, ":new_camp"),
(remove_party, ":new_camp"),
(party_template_set_slot, ":bandit_template", slot_party_template_lair_party, 0),
(else_try),
(eq, ":bandit_template", "pt_sea_raiders"),
(eq, ":new_camp_terrain", 3),
(map_get_water_position_around_position, pos5, pos4, 4),
(party_template_set_slot, ":bandit_template", slot_party_template_lair_party, ":new_camp"),
(party_set_flags, ":new_camp", pf_disabled, 1),
(else_try),
(eq, ":bandit_template", "pt_mountain_bandits"),
(eq, ":new_camp_terrain", 3),
(gt, ":elevation", 250),
(party_template_set_slot, ":bandit_template", slot_party_template_lair_party, ":new_camp"),
(party_set_flags, ":new_camp", pf_disabled, 1),
(else_try),
(eq, ":bandit_template", "pt_desert_bandits"),
(eq, ":new_camp_terrain", 5),
(gt, ":lair_y", -9000),
(gt, ":elevation", 125),
(party_template_set_slot, ":bandit_template", slot_party_template_lair_party, ":new_camp"),
(party_set_flags, ":new_camp", pf_disabled, 1),
(else_try),
(eq, ":bandit_template", "pt_steppe_bandits"),
(this_or_next|eq, ":new_camp_terrain", 2),
(eq, ":new_camp_terrain", 10),
(this_or_next|eq, ":new_camp_terrain", 10),
(gt, ":elevation", 200),
(party_template_set_slot, ":bandit_template", slot_party_template_lair_party, ":new_camp"),
(party_set_flags, ":new_camp", pf_disabled, 1),
(else_try),
(eq, ":bandit_template", "pt_taiga_bandits"),
(eq, ":new_camp_terrain", 12),
(party_template_set_slot, ":bandit_template", slot_party_template_lair_party, ":new_camp"),
(party_set_flags, ":new_camp", pf_disabled, 1),
(else_try),
(eq, ":bandit_template", "pt_forest_bandits"),
(eq, ":new_camp_terrain", 11),
(party_template_set_slot, ":bandit_template", slot_party_template_lair_party, ":new_camp"),
(party_set_flags, ":new_camp", pf_disabled, 1),
(else_try),
(party_is_active, ":new_camp"),
(str_store_party_name, s4, ":new_camp"),
(remove_party, ":new_camp"),
(party_template_set_slot, ":bandit_template", slot_party_template_lair_party, 0),
(else_try),
(try_end),
(try_end),
    ]),


it says pos4, pos5 ,is it what am i supposed to change?
i dont know what i should add to forest bandits info?
 
That particular piece of code gives you one lair per party template of bandits. The easiest way would be to insert a new party template of sea raiders, and set up the template slot associations as follows:
插入代码块:
(party_template_set_slot, "pt_sea_raiders_2", slot_party_template_lair_type, "pt_sea_raider_lair"),
(party_template_set_slot, "pt_sea_raiders_2", slot_party_template_lair_spawnpoint, "p_sea_raider_spawn_point_2"),
 
My lord family relations in new faction is randomly distributed, but i wanna make one lord brother of another.how is it possible in script?
 
后退
顶部 底部