Below is my basic version of a Realms of Despair reroll script. It'll roll fine for a few minutes, then halt with this error:
Usually, I can manually reroll, type gold to set the stat check off and off it'll go again... for another few minutes, before halting again with the same thing.
Any help is greatly appreciated :)
PS. If it means anything to anyone, I'm using version 4.12.
PPS. Below here is that code I promised :P
Error number: 0
Event: Compile error
Description: [string "Trigger: "]:1: unexpected symbol near '>='
Called by: Immediate execution
Usually, I can manually reroll, type gold to set the stat check off and off it'll go again... for another few minutes, before halting again with the same thing.
Any help is greatly appreciated :)
PS. If it means anything to anyone, I'm using version 4.12.
PPS. Below here is that code I promised :P
<code>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="Strength * *"
send_to="9"
sequence="1"
variable="str"
>
<send>%1</send>
</trigger>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="Dexterity * *"
send_to="9"
sequence="15"
variable="dex"
>
<send>%1</send>
</trigger>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="Intelligence * *"
send_to="9"
sequence="30"
variable="int"
>
<send>%1</send>
</trigger>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="Wisdom * *"
send_to="9"
sequence="45"
variable="wis"
>
<send>%1</send>
</trigger>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="Charisma * *"
send_to="9"
sequence="60"
variable="cha"
>
<send>%1</send>
</trigger>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="Constitution * *"
send_to="9"
sequence="75"
variable="con"
>
<send>%1</send>
</trigger>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="Luck * *"
send_to="9"
sequence="90"
variable="lck"
>
<send>%1</send>
</trigger>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="* You have * gold pieces."
send_to="12"
sequence="100"
>
<send>if @str >= 18 and @dex >= 18 and @int >= 9 and @wis >= 9 and @cha >= 9 and @con >= 9 and @lck >= 16 then
Execute ("pull cord;save;save;quit")
return
end
if @str < 18 or @dex < 18 or @int < 9 or @wis < 9 or @cha < 9 or @con < 9 or @lck < 9 then
Execute ("reroll;gold")
return
end</send>
</trigger>
<trigger
enabled="y"
expand_variables="y"
match="If you know well the ways of this world, *, simply type: EXPERIENCED"
sequence="100"
>
<send>help start
config +brief
config +nointro
config +beckon
experienced
get all sack
wear all
u
'path of the peaceful
nw</send>
</trigger>
<trigger
back_colour="8"
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="You have * gold pieces."
match_back_colour="y"
match_text_colour="y"
send_to="12"
sequence="100"
text_colour="11"
>
<send>if @str >= 18 and @dex >= 18 and @int >= 9 and @wis >= 9 and @cha >= 9 and @con >= 9 and @lck >= 16 then
Execute ("pull cord;save;save;quit")
return
end
if @str < 18 or @dex < 18 or @int < 9 or @wis < 9 or @cha < 9 or @con < 9 or @lck < 9 then
Execute ("reroll;gold")
return
end</send>
</trigger>
</triggers>