You can use a setter link.
[[inventory][$armour to 'leather']]
Or a <<link>> macro.
<<link [[inventory]]>>
<<set $armour to 'leather'>>
<</link>>
EDIT: FYI, passing has a specific meaning in programming and this isn't it. Not a huge deal, just want to alleviate potential future confusion.