<triggers>
<trigger
custom_colour="2"
enabled="y"
group="Blackjack"
ignore_case="y"
match="^Your current total is\: (.*?)\|Your current total is\: (.*?) \(soft\)$"
regexp="y"
send_to="12"
sequence="100"
variable="bjtotal"
>
<send>SetVariable ("bjtotal", "%1")
SetStatus ("Your current total is: %1")
</send>
</trigger>
</triggers>
Your current total is: 14 <--- this variable is frozen to this number and not changing to
a new number. I can't find where to make the adjustment.
<triggers>
<trigger
enabled="y"
group="Blackjack"
keep_evaluating="y"
match="^(A blackjack dealer asks, ){0,1}'Will you hit,{0,1} (or ){0,1}stay,{0,1}( or double down){0,1},{0,1} Lyneirari\?'( a blackjack dealer asks\.){0,1}$"
regexp="y"
send_to="10"
sequence="100"
>
<send>Blackjack_Game</send>
</trigger>
</triggers>
<aliases>
<alias
match="Blackjack_Game"
enabled="y"
echo_alias="y"
group="Blackjack"
variable="bjtotal"
send_to="12"
ignore_case="y"
keep_evaluating="y"
sequence="100"
>
<send>local bjtotal
bjtotal = tonumber (GetVariable("bjtotal"))
if bjtotal <= 12 then
Send ("say hit")
elseif bjtotal >= 13 then
Send ("say stay")
end</send>
</alias>
</aliases>
Run-time error
World: Materia Magica GMCP
Immediate execution
[string "Alias: "]:5: attempt to compare nil with number
stack traceback:
[string "Alias: "]:5: in main chunk
<trigger
custom_colour="2"
enabled="y"
group="Blackjack"
ignore_case="y"
match="^Your current total is\: (.*?)\|Your current total is\: (.*?) \(soft\)$"
regexp="y"
send_to="12"
sequence="100"
variable="bjtotal"
>
<send>SetVariable ("bjtotal", "%1")
SetStatus ("Your current total is: %1")
</send>
</trigger>
</triggers>
Your current total is: 14 <--- this variable is frozen to this number and not changing to
a new number. I can't find where to make the adjustment.
<triggers>
<trigger
enabled="y"
group="Blackjack"
keep_evaluating="y"
match="^(A blackjack dealer asks, ){0,1}'Will you hit,{0,1} (or ){0,1}stay,{0,1}( or double down){0,1},{0,1} Lyneirari\?'( a blackjack dealer asks\.){0,1}$"
regexp="y"
send_to="10"
sequence="100"
>
<send>Blackjack_Game</send>
</trigger>
</triggers>
<aliases>
<alias
match="Blackjack_Game"
enabled="y"
echo_alias="y"
group="Blackjack"
variable="bjtotal"
send_to="12"
ignore_case="y"
keep_evaluating="y"
sequence="100"
>
<send>local bjtotal
bjtotal = tonumber (GetVariable("bjtotal"))
if bjtotal <= 12 then
Send ("say hit")
elseif bjtotal >= 13 then
Send ("say stay")
end</send>
</alias>
</aliases>
Run-time error
World: Materia Magica GMCP
Immediate execution
[string "Alias: "]:5: attempt to compare nil with number
stack traceback:
[string "Alias: "]:5: in main chunk