Help with custom, need a random win or lose on adventure?


I want to create an adventure mode, or I guess a campaign style setting. My idea is this: I just need the payout to be more RNG? My idea is like a campaign setting, the users get troops and they enter troops into a battle mode, or campaign of sorts, but I would like for the payout to be able to win and reward, maybe not a full reward, maybe double… but also in a loss, not to lose everything but perhaps lost a percentage of the troops that died on the battlefield. Is there a way to make multiple win/loss percentage outcomes?


Maybe there is a way to link an individual payout to an outgoing message with the results from the adventure?