Any ideas how i can make this work so that {total.bj.%player%} is both {chosen.bj.%player%.1} and {chosen.bj.%player%.2}
basically variable3 = variable1 + variable2
basically variable3 = variable1 + variable2
Code:
command /playgame [<number>] [<text>] [<text>]:
trigger:
if arg-1 and arg-2 and arg-3 is set:
if arg-2 is "bj":
if arg-3 is "first":
send "%{prfx}% &fPicking up cards" to player
wait 12 ticks
set {chosen.bj.%player%.1} to a random element out of {cards.bj::*}
set {chosen.bj.%player%.2} to a random element out of {cards.bj::*}
send "%{prfx}% &fCard:&d %{chosen.bj.%player%.1}%" to player
send "%{prfx}% &fCard:&d %{chosen.bj.%player%.2}%" to player
wait 1 tick
set {total.bj.%player%} to {chosen.bj.%player%.1} + {chosen.bj.%player%.2}
wait 10 ticks
send "%{prfx}% &fTotal Amount: &d%{total.bj.%player%}%" to player