Итак, если делать свадийский восставших солдат, то:
module_faction("manhunters","Manhunters", 0, 0.5,[("outlaws",-0.6),("player_faction",0.1)], []),
("deserters","Deserters", 0, 0.5,[("manhunters",-0.6),("merchants",-0.5),("player_faction",-0.1)], [], 0x888888),
("mountain_bandits","Mountain Bandits", 0, 0.5,[("commoners",-0.2),("merchants",-0.5),("manhunters",-0.6),("player_faction",-0.15)], [], 0x888888),
("forest_bandits","Forest Bandits", 0, 0.5,[("commoners",-0.2),("merchants",-0.5),("manhunters",-0.6),("player_faction",-0.15)], [], 0x888888),
("rising_soldiers","Rising soldiers", 0, 0.5,[("outlaws",-0.6),("deserters", -0.02),("player_faction",0.1)], [], 0x0000ff),
("undeads","{!}Undeads", max_player_rating(-30), 0.5,[("commoners",-0.7),("player_faction",-0.5)], []),
module_party_templates ("sea_raiders","Sea Raiders",icon_axeman|carries_goods(2),0,fac_outlaws,bandit_personality,[(trp_sea_raider,5,50)]),
("deserters","Deserters",icon_vaegir_knight|carries_goods(3),0,fac_deserters,bandit_personality,[]),
("rising_soldiers","Rising soldiers",icon_vaegir_knight|carries_goods(3),0,fac_rising_soldiers,soldier_personality,[(trp_swadian_knight,1,2),(trp_swadian_crossbowman,2,5),(trp_swadian_man_at_arms,1,4),(trp_swadian_footman,1,5),(trp_swadian_militia,4,8)]),
module_dialogs# rising soldiers +
[party_tpl|pt_rising_soldiers,"start", [(eq,"$talk_context",tc_party_encounter)], "Whoever you are, move away!.^We are rising soldiers and going to fight against the unfairness in this country and we will move you ourself if you don't!.^ Move away!.", "rising_soldiers_talk", [(assign, "$g_leave_encounter", 1)]],
[anyone|plyr,"rising_soldiers_talk", [], "Please, continue.", "close_window", []],
[anyone|plyr,"rising_soldiers_talk", [], "If you fight for the truth and the piece of this kingdom, so do I.^Join my party and we will overthrough the dishonest lords and unite the country", "rising_soldiers_answer", []],
[anyone,"rising_soldiers_answer", [(troop_slot_ge, "trp_player",slot_troop_renown, 300)], "We have not got a leader. You, as i heard, one of the bravest man in Calradia.^ Then we'll join your party, my lord!.. and glad to serve to you and die for yourself. Lead us to glory!.", "close_window",[(party_join)]],
[anyone,"rising_soldiers_answer", [], "We don't trust you, sir, sorry!", "close_window",[]],
# rising soldiers -
######################################
# GENERIC PARTY ENCOUNTER
######################################
фиолетовым правильно пометил условие извесности
до этого не работал, все время отказывал. Ну и:
module_simple_triggers (12,
[
(store_random_in_range,":random",0,100),
(lt, ":random", 10),
(store_random_in_range,":rand_center",centers_begin,centers_end),
(spawn_around_party, ":rand_center", "pt_rising_soldiers"),
(party_set_ai_behavior, reg0, ai_bhvr_patrol_party),
(party_set_ai_object, reg0, ":rand_center"),
Скомпилировал. Без ошибок.
Я думаю, что если убрать заданных солдат в темплейтс, то будут не только свады-восставшие но и другие. Но пока не пробовал.
_____________________
У меня еще есть идея насчет реальных повстанцев, которые будут все жечь и мародерствовать вокруг