I would guess that the thought process of someone asking this question goes along the lines of this:
"I want pleasant/good outcomes for myself. I learnt that intention leads to outcome. Therefore, if I have good intention, I can create good outcomes for myself. However, I sometimes also see that people who pleasant/good intention don't necessarily receive good outcomes. I want to know for sure, that pleasant/good outcomes come from pleasant/good intentions, if not I have wasted all this time & effort cultivating good intention when I can simply get pleasure through other means. So I will ask others."
Some hypothetical questions:
What do you mean by 'one'?
What do you mean by 'other'?
What do you mean by 'good'?
Is 'good' the same as 'pleasant'?
If someone tells you "yes, pleasant & good intentions result in pleasant & good outcomes". How do you know that for sure yourself?
And could that be always traced by anyone, the line of cause and effect?
Allegedly the Buddha could trace the entire chain of cause and effect "as far as ninety one eons" (Majjhima Nikaya)
The rest of us supposedly can't, though some can see more than others. The way you can see more than others is to first cultivate good intention & observe the result through your own experience.