
Merchant inventory and level-based unlocks
Trader stock is reset on each long rest and whenever any character levels up; items sold or traded to that merchant generally stay available. Some stock depends on the level of the first party member who trades with or pickpockets the merchant after a refresh. In the source's armour example, a level 5 character speaking to the merchant may unlock Scale Mail until the next refresh, and a level 6 character may unlock Half Plate Armour, which the lower-level party members can then buy until that refresh.
Attitude costs and scroll transcription
Improving a merchant's attitude towards a party member costs more as the trading character's level increases. For wizard scroll transcription, the deciding factor is not the number of wizard levels but whether the character's effective spellcaster level is high enough to cast the scroll's spell; a single wizard level is enough to transcribe any wizard spell on a scroll. One wizard level plus two bard levels, for instance, provides 2nd-level slots and allows transcribing Detect Thoughts from a scroll even though no 2nd-level spells would be learned during level-up.
Step-by-Step Guide
Reset and unlock merchant stock
Take a long rest or have a character level up to refresh a merchant's inventory. If level-gated stock is desired, send the appropriate-level party member to trade with or pickpocket the merchant first after the refresh, then let other party members buy the newly available items before the next reset.
Time attitude improvements
Raise merchant attitude with the party member you intend to keep trading with, since those raises become more expensive as that character's level rises.
Check slots and caster level for scrolls
Before transcribing a wizard scroll, confirm that the character's available spell slots and effective spellcaster level are sufficient to cast the scroll's spell; remember that one wizard level is enough and that the wizard-level error message can be misleading.