QBO is not functional enough to do this as a one step kind of thing, sorry.
Do not use a journal entry, they often do not work as intended and are not included in some reporting.
In the chart of accounts, create
a liability account for the royalty due
an expense account for royalty paid
Create two items
Service item named royalty due
Service item named royalty paid
Use a sales receipt, manually calculate the amount of royalty to be paid out
line one, the royalty paid item and the amount
line two, the royalty due item and the amount as a negative number
save the zero dollar sales receipt
when you pay the royalty out, use the royalty due account as the expense (reason) for the payment