I'm new to this type of script and iv looked into the forum for something similar but have had little luck getting it to work.
This is the trigger line.
Raichek says 'As a reward, I am giving you 18 mission points, and 14 Ryo.'
Trigger:
match="^'As a reward, I am giving you (\d+) mission points, and (\d+) Ryo.'$"
Send:
var.mpcount = (var.mpcount or 0) + %1
var.totmp = (var.totmp or 0) + %1
I have it going to script,enabled, regular expression,custom_2
Also my lua file is C:\Program Files (x86)\MUSHclient\scripts\exampscript.lua
My alias recall this number is
Alias = missions
You have gained : @mpcount
It gives the Error variable "mpcount" has not been defined
This is the trigger line.
Raichek says 'As a reward, I am giving you 18 mission points, and 14 Ryo.'
Trigger:
match="^'As a reward, I am giving you (\d+) mission points, and (\d+) Ryo.'$"
Send:
var.mpcount = (var.mpcount or 0) + %1
var.totmp = (var.totmp or 0) + %1
I have it going to script,enabled, regular expression,custom_2
Also my lua file is C:\Program Files (x86)\MUSHclient\scripts\exampscript.lua
My alias recall this number is
Alias = missions
You have gained : @mpcount
It gives the Error variable "mpcount" has not been defined