I cant seem to make this skript work, It wont add the money to my balance, And the {_total} keeps showing up as 0
command /sell:
trigger:
set {_inventory} to {bag::%player's uuid%}
add {_inventory}*{multiplier::%player's balance%} to player's balance and {_total}
send "{@p} &6You have sold your whole bag &8| &a+ %{_total}%"
wait 1 second
set {bag::%player's uuid%} to 0