The trigger occurs when you use the Morph ability to turn the card face up, or when an effect turns it face up. It will not trigger on being revealed or on leaving the battlefield.

Artwork
Loading artwork…
Warbreak Trumpeter
Legions · #116 · EN
Nonfoil—Foil—
Card rules
Morph XX
(You may cast this card face down as a 2/2 creature for 3. Turn it face up any time for its morph cost.)
When this creature is turned face up, create X 1/1 red Goblin creature tokens.
1/1
Uncommon · Illustrated by Dany Orizio
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Penny Legal
PreDH Legal
Premodern Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
The X in the ability has the same value as the X paid in the Morph ability. This is pretty easy to derive since there is no other source of X.