Alexandru_cel_Mare
Sergeant at Arms

I was thinking about adding a few invasions into my mode,
I have searched here and there for an invasion script that works, but i found none... Strangely enough, as far as i know nobody thought of making an OSP invasion script that could be used by everybody.
Howewer, a few time ago it came out the source for SOD... and there is an invasion script which runs in module_simple_triggers.py. The text for it is as it follows:
I think it is much more than this, and it probably has some ramifications in other areas... but this is the basics, it seems...
Would be possible to port such a script to Warband Module System ?
I have searched here and there for an invasion script that works, but i found none... Strangely enough, as far as i know nobody thought of making an OSP invasion script that could be used by everybody.
Howewer, a few time ago it came out the source for SOD... and there is an invasion script which runs in module_simple_triggers.py. The text for it is as it follows:
#SoD INVASION BEGIN
(24,
[
(store_current_day, ":cur_day"),
(store_random_in_range, ":village_no", "p_village_16", "P_village_67"),
(eq, ":cur_day", 365),
(call_script, "script_create_kingdom_hero_party", "trp_kingdom_6_lord", ":village_no"),
(troop_set_slot, "trp_kingdom_6_lord", slot_troop_wealth, 100000),
(call_script, "script_diplomacy_start_war_between_kingdoms", "fac_kingdom_6", "fac_kingdom_1", 1),
(call_script, "script_diplomacy_start_war_between_kingdoms", "fac_kingdom_6", "fac_kingdom_2", 1),
(call_script, "script_diplomacy_start_war_between_kingdoms", "fac_kingdom_6", "fac_kingdom_3", 1),
(call_script, "script_diplomacy_start_war_between_kingdoms", "fac_kingdom_6", "fac_kingdom_4", 1),
(call_script, "script_diplomacy_start_war_between_kingdoms", "fac_kingdom_6", "fac_kingdom_5", 1),
(try_for_range, ":troop_no", "trp_knight_6_01", "trp_knight_6_80"),
(troop_slot_eq, ":troop_no", slot_troop_occupation, slto_kingdom_hero),
#(troop_slot_eq, ":troop_no", slot_troop_is_prisoner, 0),
(neg|troop_slot_ge, ":troop_no", slot_troop_prisoner_of_party, 0),
(neg|troop_slot_ge, ":troop_no", slot_troop_leaded_party, 1),
(call_script, "script_create_kingdom_hero_party", ":troop_no", ":village_no"),
(troop_set_slot, ":troop_no", slot_troop_wealth, 40000),
(try_end),
]),
#SoD INVASION END
I think it is much more than this, and it probably has some ramifications in other areas... but this is the basics, it seems...
Would be possible to port such a script to Warband Module System ?