|
srelov Newbie
Joined: 06 Jul 2002 Posts: 9
|
Posted: Fri Jul 04, 2003 7:21 pm
%d trigger help please |
Ok, I've been working on this for a few weeks now. Please forgive my ignorance here. I've set up a skeleton lpmud to test this on and am trying to figure out what I'm doing wrong.
Here's a sample of the text I might see:
HP: [242/580], SP: [370/601], EP: [601/601]
Here's what I put in for the pattern:
HP: ~[(%d)~/(%d)~], SP: ~[(%d)~/(%d)~], EP:~[(%d)~/(%d)~]
I've tried both on prompt and on new line.
I'm trying to execute commands based on math outputs but I can't even get to that point yet. When nothing worked I put in the following in response
#var currentHP %1
#var totalHP %2
#var currentSP %3
#var totalSP %4
#var currentEP %5
#var TotalEP %6
#echo @currentHP and @totalHP . . . . . . .
I get nothing. when I check values, the variables are empty.
any suggestions as to what I may be doing wrong would be greatly appreciated. Thanks.
Sre |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Jul 04, 2003 7:46 pm |
You left out the space between "EP:" and "~[(%d)~/(%d)~]"
|
|
|
|
srelov Newbie
Joined: 06 Jul 2002 Posts: 9
|
Posted: Fri Jul 04, 2003 7:50 pm |
Sorry, I must have typed that in wrong. I do have a space there in the actual trigger itself. but it's getting nothing.
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Jul 04, 2003 9:00 pm |
I tested it. When you have the correct number of spaces the trigger works fine. My guess is that your pattern doesn't match the actual MUD output. It might be the spaces. It might be the commas. It might be something else. But there's nothing else wrong with the trigger, so it almost certainly has to be your pattern.
|
|
|
|
srelov Newbie
Joined: 06 Jul 2002 Posts: 9
|
Posted: Sat Jul 05, 2003 6:16 pm |
You're right. I looked closer and found the variation from the mud output versus my trigger pattern. Thanks. (had an extra space in one place, took me forever to find it :P).
|
|
|
|
|
|