How would i make a contract that only let mint the actual nft by owning other nfts

i create a game where users can get 'welcome' tokens for free.
when they like to get another token (nft) from the game, it is only possible to mint
when the user has a 'welcome' token already.

bascially how to make a dependency to mint a specific token ONLY when another specific token or one of a collection or wallet adress is already owned.

i am new, so i hope u can help with some examples
thanks
christian

You need to check the balance of the user for that specific token.