this script is a counter that counts my skill improvments. I will get a message that will say something like "* You think your offensive skill has improved. *" It will then say "ooc +offensive-X" where x is the number of times i have gotten that message.
Problem is whenever i get a message that says * You think your two-handed sword skill has improved. * i get an error about mismatch variable type.
Here is the trigger and script:
<triggers>
<trigger
enabled="y"
match="* You think your * * skill has improved. *"
script="skills"
send_to="9"
sequence="1"
variable="skills"
other_text_colour="black"
other_back_colour="black"
>
<send>%2%3</send>
</trigger>
<trigger
enabled="y"
keep_evaluating="y"
match="* You think your * skill has improved. *"
script="skills"
send_to="9"
sequence="2"
variable="skills"
other_text_colour="black"
other_back_colour="black"
>
<send>%2</send>
</trigger>
</triggers>
sub skills (sName, b, c)
dim skill
dim chan
skill = world.getvariable ("skills")
chan = world.getvariable (skill)
chan = chan + 1
world.setvariable skill, chan
world.send "ooc +" & skill & "-" & chan
end sub
Problem is whenever i get a message that says * You think your two-handed sword skill has improved. * i get an error about mismatch variable type.
Here is the trigger and script:
<triggers>
<trigger
enabled="y"
match="* You think your * * skill has improved. *"
script="skills"
send_to="9"
sequence="1"
variable="skills"
other_text_colour="black"
other_back_colour="black"
>
<send>%2%3</send>
</trigger>
<trigger
enabled="y"
keep_evaluating="y"
match="* You think your * skill has improved. *"
script="skills"
send_to="9"
sequence="2"
variable="skills"
other_text_colour="black"
other_back_colour="black"
>
<send>%2</send>
</trigger>
</triggers>
sub skills (sName, b, c)
dim skill
dim chan
skill = world.getvariable ("skills")
chan = world.getvariable (skill)
chan = chan + 1
world.setvariable skill, chan
world.send "ooc +" & skill & "-" & chan
end sub