Adding party to spawn timer?

正在查看此主题的用户

Bellum

Master Knight
Ok, so I set up a new party (a ridiculously overpowered bandit group, I'm just trying to learn the system, here) pretty much just like all the other ones are set up, with a troop definition, a party template, and a dummy party as the spawn point. Now, how do I go about adding the party to the spawn timer? From what I've read, looks like there's supposed to be something in module_triggers, but looks like that info is out of date.
 
I'm trying to figure out the same thing actually.  I want to add new parties, and tried with parties, party templates and module troops, even messed around in the scripts and triggers but counldnt find anything to hlp
 
Seems I've figured it out!

OMGBANDITSRUN.png


pain.png

Yes, it does hurt....


For Dudro, in spawn_bandits in module_scripts...
插入代码块:
  ("spawn_bandits",
    [(set_spawn_radius,1),
     (try_begin),
       (store_num_parties_of_template, ":num_parties", "pt_omg_bandits"),
       (lt,":num_parties",1),
       (store_random,":spawn_point",num_omg_bandits_spawn_points),
       (val_add,":spawn_point","p_omg_bandits_spawn_point"),
       (spawn_around_party,":spawn_point","pt_omg_bandits"),
     (try_end),
	 (try_begin),
       (store_num_parties_of_template, ":num_parties", "pt_mountain_bandits"),
       (lt,":num_parties",5),
       (store_random,":spawn_point",num_mountain_bandit_spawn_points),
       (val_add,":spawn_point","p_mountain_bandit_spawn_point"),
       (spawn_around_party,":spawn_point","pt_mountain_bandits"),
     (try_end),
     (try_begin),

I just copied one entry and made a new one. num_omg_bandits_spawn_points I defined in module_constants with the rest of them. You could just put in the number. No idea what it does, actually. :razz:
 
后退
顶部 底部