Adding a new custom spawn

Users who are viewing this thread

I have an important question about adding a new custom party spawn to the game.

("talon_militia_patrol","Talon Militia Patrol",icon_gray_knight|carries_goods(5)|pf_show_faction,0,fac_kingdom_6,soldier_personality,[(trp_talon_villager,3,12),(trp_talon_conscript,3,10),(trp_talon_desert_bowman,3,10),(trp_talon_desert_raider,2,5),(trp_talon_archer,2,5),(trp_talon_desert_footman,2,5)]),
I added this line of code to the module party templates. Now I'm wondering, where do I put the spawn coordinates? How is this party going to spawn in the actual game? Do I need to add something more into the module scripts?
 
Solution
if they should not spawn randomly

Code:
     (try_begin),
       (store_num_parties_of_template, ":num_parties", "pt_yourparty"), #tocan: if you want a numbers check
       (lt,":num_parties",16),  #tocan: if you want a numbers check
       (store_random_in_range,":radius",10,101),  #tocan: if you want various radius
       (set_spawn_radius, ":radius"), #tocan: if you don't want various radius instead ":radius" just the number
       (spawn_around_party,"p_yourlocaction","pt_yourparty"),
     (try_end),
There are different ways, you could take a look at the script spawn_bandits

Code:
     (try_begin),
       (store_num_parties_of_template, ":num_parties", "pt_yourparty"),
       (lt,":num_parties",16), #was 14 at mount&blade, 18 in warband, 16 last decision
       (store_random_in_range,":spawn_point",centers_begin,centers_end),
       (store_random_in_range,":radius",10,101),
       (set_spawn_radius, ":radius"),
       (spawn_around_party,":spawn_point","pt_yourparty"),
     (try_end),

would spawn them near a random settlement with various distance
 
Upvote 0
There are different ways, you could take a look at the script spawn_bandits

Code:
     (try_begin),
       (store_num_parties_of_template, ":num_parties", "pt_yourparty"),
       (lt,":num_parties",16), #was 14 at mount&blade, 18 in warband, 16 last decision
       (store_random_in_range,":spawn_point",centers_begin,centers_end),
       (store_random_in_range,":radius",10,101),
       (set_spawn_radius, ":radius"),
       (spawn_around_party,":spawn_point","pt_yourparty"),
     (try_end),

would spawn them near a random settlement with various distance
I suppose on the
(store_random_in_range,":spawn_point",centers_begin,centers_end),
I can write the Town centers on which I want to get them spawned?
 
Upvote 0
if they should not spawn randomly

Code:
     (try_begin),
       (store_num_parties_of_template, ":num_parties", "pt_yourparty"), #tocan: if you want a numbers check
       (lt,":num_parties",16),  #tocan: if you want a numbers check
       (store_random_in_range,":radius",10,101),  #tocan: if you want various radius
       (set_spawn_radius, ":radius"), #tocan: if you don't want various radius instead ":radius" just the number
       (spawn_around_party,"p_yourlocaction","pt_yourparty"),
     (try_end),
 
Upvote 0
Solution
Back
Top Bottom