[Question] How to make parties spawn on map? (like looters)

正在查看此主题的用户

123sendodo

Recruit
I have try to find this in the module files. I found the spawn point in the parties folder and I know how to make a party. I just don't know how to make them spawn. I want them to spawn randomly like looters. Please help
 
Do a search for looters but using the search all files :wink:. You will find everything you need then.

 
Module party_templates:
("new","party_name_in_game",icon_axeman|carries_goods(:cool:,0,fac_outlaws,bandit_personality,[(trp_your_troop,1,1)]),

Module parties:
("new_spawn_point"  ,"{!}new_sp",pf_disabled|pf_is_static, no_menu, pt_none, fac_outlaws,0,ai_bhvr_hold,0,(26, 77),[(trp_looter,15,0)]),

Module scripts: Search for ("spawn_bandits", and paste this code after first (try_end),
(try_begin),
      (store_num_parties_of_template, ":num_parties", "pt_new"),
      (lt,":num_parties",14),
      (store_random,":spawn_point",num_new_spawn_points),
      (val_add,":spawn_point","p_new_spawn_point"),
      (spawn_around_party,":spawn_point","pt_new"),
    (try_end),

Module constants: Search for num_sea_raider_spawn_points = 2
Paste this code after ^^:
num_new_spawn_points = 1
 
Masterancza 说:
Module party_templates:
("new","party_name_in_game",icon_axeman|carries_goods(:cool:,0,fac_outlaws,bandit_personality,[(trp_your_troop,1,1)]),

Module parties:
("new_spawn_point"  ,"{!}new_sp",pf_disabled|pf_is_static, no_menu, pt_none, fac_outlaws,0,ai_bhvr_hold,0,(26, 77),[(trp_looter,15,0)]),

Module scripts: Search for ("spawn_bandits", and paste this code after first (try_end),
(try_begin),
      (store_num_parties_of_template, ":num_parties", "pt_new"),
      (lt,":num_parties",14),
      (store_random,":spawn_point",num_new_spawn_points),
      (val_add,":spawn_point","p_new_spawn_point"),
      (spawn_around_party,":spawn_point","pt_new"),
    (try_end),

Module constants: Search for num_sea_raider_spawn_points = 2
Paste this code after ^^:
num_new_spawn_points = 1
Thanks it worked!! :smile:
 
后退
顶部 底部