Identify your dish type: curry/braise (tolerates warmer substitutes) vs. sauce/finishing (needs fresher “pepper” notes).
Choose the closest match from the table (aim for 1:1 for pepper-for-pepper swaps).
If your substitute is hotter/sweeter than long pepper, reduce the amount first (allspice/ginger/chili need downward adjustment).
Add early for cooked flavors (ginger/allspice) or add at the end for pepper-like brightness (black/white pepper).
Taste and fine-tune: add a pinch more pepper for lift, or add a pinch of a warm spice for roundness.