Thanks! ...posted this in the Q/A thread as well.
The pistol (itm_pistol) is already randomly available in towns and castles, but I wanted to make it always be available at game start in the specific town of Smolensk (p_town_13).
I'm also talking about the town's store, not the arm's merchant where one can order the fancier weapons.
I'm very much lost here.
I did succeed in making several companions be available at game start in smolensk (who are otherwise randomly distributed into towns), by adding these scripts (in bold):
--------------------------------------------------------------------------------------------------------------------
#script_update_companion_candidates_in_taverns
# INPUT: none
# OUTPUT: none
("update_companion_candidates_in_taverns",
[ (try_for_range, ":troop_no", companions_begin, companions_end),
(troop_set_slot, "trp_npc9", slot_troop_cur_center, "p_town_13"),
(troop_set_slot, "trp_npc7", slot_troop_cur_center, "p_town_13"),
(troop_set_slot, "trp_npc13", slot_troop_cur_center, "p_town_13"),
(troop_slot_eq, ":troop_no", slot_troop_occupation, 0),
(store_random_in_range, ":town_no", towns_begin, towns_end),
(try_begin),
(neg|troop_slot_eq, ":troop_no", slot_troop_home, ":town_no"),
--------------------------------------------------------------------------------------------------------------------
I figure making a otherwise randomly distributed pistol be available at a specific town at game start might follow a similar type of script. ...no luck figuring out how to do this though.
rfa