Making new parties

正在查看此主题的用户

rrdrl12

Sergeant
Hi, I want to make new parties for the game.

-1 kingdom patrols as in WFaS, with 15-20 soldiers from every kingdom each. I know there's a guide on parties, but how do I spawn them?

- also, If I made a new group of bandits, how do I spawn them?
 
You can simply do that by referring to the codes needed for manhunters party in factions.py , party_templates.py and in trigger.py 


there is a code in triggers.py that spawns manhunters party.

  (5.7, 0, 0.0,
  [
    (store_num_parties_of_template, reg2, "pt_manhunters"),   
    (lt, reg2, 4)
  ],
  [
    (set_spawn_radius, 1),
    (store_add, ":p_town_22_plus_one", "p_town_22", 1),
    (store_random_in_range, ":selected_town", "p_town_1", ":p_town_22_plus_one"),
    (spawn_around_party, ":selected_town", "pt_manhunters"),
  ]),


here is an example if u want to spawn a party called swadianpartol around Suno(p_town_4),(it,reg2,4) is just maximum same parties allowed on the whole map(4 in this case, u could change that number to whatever u like)
(5.7, 0, 0.0,
  [
    (store_num_parties_of_template, reg2, "pt_swadianpatrol"),   
    (lt, reg2, 4)
  ],
[(set_spawn_radius,1),(spawn_around_party,"p_town_4","pt_swadianpatrol")]),





 
what do I do if the city changes hands? If I do the script like that, then say, a vaegir city in swadian control will keep pumping out vaegir patrols wont it?
 
The trigger has a condition block - simply use store_faction_of_party and check its value there.
 
后退
顶部 底部