I mean, personally if you're just affecting the winnings and losses, you'd be looking more towards !fight_win_3 and !fight_lose_3.
Personally I wouldn't affect the user that is being taken on. Quite simply because it's unfair to punish a user that might not be in chat. However I would change the following to suit your needs. the @rand@ that you mentioned affects the base amount in this case. the base payout is a random number between 1 and 50. If you change the rand here it will also change the amount the other user loses.
@if@[<=||@rand@[1|100]||10||/me (fight) @editpoints@[@user@|@calc@[*|@target@[2]|10]] @editpoints@[@target@[1]|-@target@[2]] @user@ used a @readfile@[Fight/user-weapons.txt] to fight @target@[1] who had a @readfile@[Fight/target-weapons.txt] and won @calc@[*|@target@[2]|10] @pointsname@||/me (fight) @editpoints@[@user@|@target@[2]] @editpoints@[@target@[1]|-@target@[2]] @user@ used a @readfile@[Fight/user-weapons.txt] to fight @target@[1] who had a @readfile@[Fight/target-weapons.txt] and won @target@[2] @pointsname@]
That command can easily be optimised (As @rand@ will stay the same throughout the command unless the unique modifier is added to it) but for simplicity sake, that's how it is.
The losing, however, is slightly more difficult. This is because @editpoints@ will happily take your points into the negative if you let it. An extra check needs to happen on the negative side
@if@[<=||@rand@[1|100]||10||/me (fight) @if@[<||@points@||@calc@[*|@target@[2]|10]||@editpoints@[@user@|-@calc@[-|@calc@[*|@target@[2]|10]|@points@]]||@editpoints@[@user@|-@calc@[*|@target@[2]|10]]] @editpoints@[@target@[1]|@target@[2]] @user@ used a @readfile@[Fight/user-weapons.txt] to fight @target@[1] who had a @readfile@[Fight/target-weapons.txt] and lost @calc@[*|@target@[2]|10] @pointsname@||/me (fight) @editpoints@[@user@|-@target@[2]] @editpoints@[@target@[1]|@target@[2]] @user@ used a @readfile@[Fight/user-weapons.txt] to fight @target@[1] who had a @readfile@[Fight/target-weapons.txt] and lost @target@[2] @pointsname@]
Haven't tested the lose code but the win code I did. Basically there's a 10% chance they will get a x10 win/lose payout. If you wish to change the % chance of this; @if@[<=||@rand@[1|100]||10||
Change the 10 in there to whatever number you wish between 1 and 100. It's at the beginning of both the commands mentioned in here. I've made it so it's x10 by default but you should be able to see what you need to change if you wish to change the payout rate as well.
Again, there are simpler ways to do this (Basically working everything needed out in one command then passing the result through) but it SHOULD work as intended
Thanks,
Dante557