Additional function

Hello Guys !
I want to launch a collection! and I have NFTs which give birth to other generations! how to do this feature and put it on the blockhain? is it in the same smart contract of the launch of the collection? or in another smart contarcat? or is there another method besides the contract?
Many Thanks !