I'm trying to make a simple_trigger that will only fire when the player is close to villages owned by a certain faction:
But it's not firing at all since I added this:
Code:
#Volantis Map Events
(1,
[
#FACTION
(try_for_range, ":event_village", villages_begin, villages_end),
(store_faction_of_party, ":faction_no", ":event_village"),
(eq, ":faction_no", "fac_kingdom_1"),
(store_distance_to_party_from_party, ":distance", "p_main_party", ":event_village"),
(lt, ":distance", 13),
(neq,"$g_camp_mode", 1),
(neq, "$g_town_visit_after_rest", 1),
(neq, "$g_player_is_captive", 1),
(party_get_current_terrain, ":terrain", "p_main_party"),
(this_or_next|eq, ":terrain", 2), #Steppe
(this_or_next|eq, ":terrain", 3), #Plain
(this_or_next|eq, ":terrain", 4), #Snow
(this_or_next|eq, ":terrain", 10), #Steppe Forest
(this_or_next|eq, ":terrain", 11), #Plain Forest
(eq, ":terrain", 12), #Snow Forest
(neg|troop_slot_ge, "trp_player", slot_troop_prisoner_of_party, 0),
(store_random_in_range, ":rand", 0, 7),
(try_begin),
(eq, ":rand", 0),
(jump_to_menu,"mnu_volantis_map_event_1"),
(else_try),
(eq, ":rand", 1),
(jump_to_menu,"mnu_volantis_map_event_2"),
(else_try),
(eq, ":rand", 2),
(jump_to_menu,"mnu_volantis_map_event_3"),
(else_try),
(eq, ":rand", 3),
(jump_to_menu,"mnu_volantis_map_event_4"),
(else_try),
(display_message,"@ "),
(try_end),
]),
But it's not firing at all since I added this:
Code:
(try_for_range, ":event_village", villages_begin, villages_end),
(store_faction_of_party, ":faction_no", ":event_village"),
(eq, ":faction_no", "fac_kingdom_1"),
(store_distance_to_party_from_party, ":distance", "p_main_party", ":event_village"),
(lt, ":distance", 13),