Some raw code from my NOVA mod. Below is a mission template
nova_clan_equipment = ( #decide what equipment the troops get
ti_on_agent_spawn, 0, 0, [],
[
(store_trigger_param_1, ":agent"),
#(agent_get_troop_id, ":agent", ":troop"),
(agent_get_item_slot,":item",":agent",5),
...