Hi,
The Mud I play has 3 different prompts,
One for warrior-like folks
HP: 93/214 Ftg: 13/61
One for mana users
HP: 104/104 Ftg: 40/40 MP: 71/71
and one for Psions
HP: 44/145 Ftg: 23/49 Psi: 0/65
I have isolated the mana and psi parts seperately
like so....
_______________________________________
for Mana warning:
<triggers>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="^(.*?) (.*?) (.*?) (.*?) MP: (.*?)/(.*?)$"
name="manaprog"
regexp="y"
send_to="12″
sequence="100″
>
<send>mana=%5
maxmana=%6
if %5 < (%6 / 3) then
Note ("LOW MANA")
end </send>
</trigger>
</triggers>
__________________________-
for low Psi warning:
<triggers>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="^(.*?) (.*?) (.*?) (.*?) Psi: (.*?)/(.*?)$"
regexp="y"
send_to="12″
sequence="100″
>
<send>psi=%5
maxpsi=%6
if %5 < (%6 / 3) then
Note ("LOW PSI")
end </send>
</trigger>
</triggers>
___________________________
My problem is capturing the health and ftg
to work with all 3 types?
here is what i'm using...
____________________________
<triggers>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="^HP\: (.*?)\/(.*?) Ftg\: (.*?)\/(.*?) "
name="hpftg"
regexp="y"
send_to="12"
sequence="100"
>
<send> hp=%1
maxhp=%2
ftg=%3
maxftg=%4
if %1 < (%2 / 3) then
Note ("LOW HEALTH")
end
if %3 < (%4 / 3) then
Note ("LOW FTG")
end
SetStatus ("Current HP = ", %1)
</send>
</trigger>
</triggers>
_________________________--
it's working for all but warrior types...
I cant get the "end of the line" wildcard
to work unless i put them all in groups and turn them off and on depending upon which type of character i'm playing.
any way to do this?....mebbe a "space" wildcard?
Thanks for any help,
K.
The Mud I play has 3 different prompts,
One for warrior-like folks
HP: 93/214 Ftg: 13/61
One for mana users
HP: 104/104 Ftg: 40/40 MP: 71/71
and one for Psions
HP: 44/145 Ftg: 23/49 Psi: 0/65
I have isolated the mana and psi parts seperately
like so....
_______________________________________
for Mana warning:
<triggers>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="^(.*?) (.*?) (.*?) (.*?) MP: (.*?)/(.*?)$"
name="manaprog"
regexp="y"
send_to="12″
sequence="100″
>
<send>mana=%5
maxmana=%6
if %5 < (%6 / 3) then
Note ("LOW MANA")
end </send>
</trigger>
</triggers>
__________________________-
for low Psi warning:
<triggers>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="^(.*?) (.*?) (.*?) (.*?) Psi: (.*?)/(.*?)$"
regexp="y"
send_to="12″
sequence="100″
>
<send>psi=%5
maxpsi=%6
if %5 < (%6 / 3) then
Note ("LOW PSI")
end </send>
</trigger>
</triggers>
___________________________
My problem is capturing the health and ftg
to work with all 3 types?
here is what i'm using...
____________________________
<triggers>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="^HP\: (.*?)\/(.*?) Ftg\: (.*?)\/(.*?) "
name="hpftg"
regexp="y"
send_to="12"
sequence="100"
>
<send> hp=%1
maxhp=%2
ftg=%3
maxftg=%4
if %1 < (%2 / 3) then
Note ("LOW HEALTH")
end
if %3 < (%4 / 3) then
Note ("LOW FTG")
end
SetStatus ("Current HP = ", %1)
</send>
</trigger>
</triggers>
_________________________--
it's working for all but warrior types...
I cant get the "end of the line" wildcard
to work unless i put them all in groups and turn them off and on depending upon which type of character i'm playing.
any way to do this?....mebbe a "space" wildcard?
Thanks for any help,
K.