Ok, a little complicated here, I got this to work fairly painlessly using Portal, but Portal doesn't support multiple windows so I switched. I've got it partially working, but have ran into a few issues.
First I started with an Alias:
track (?P<target>.*)
Command:
SetVariable ("target", "%<target>")
Execute ("sense @target")
Options:
Regular Expression
Expand Variables
Send to Script
After this I have a trigger follow it up:
^(.*)You concentrate and sense their ki (?P<there>.*) of here.
Output:
%<there>
sense @target
Options:
Keep Evaluating (tried this on and off makes no difference)
Regular Expression
Expand Variables
Send to World
A couple quirks:
I have to use the track command twice. When I use it it will send whatever the previous variable was before it writes the new one in.
Sometimes get "stuck" where if part of the direction to where the target is includes a room with exits w,n,e and you're coming from the east and the target is north, it'll sometimes hang up and keep going east then west past that room. If I let it sit there for a minute or so it eventually fixes itself, but it's quicker to kill it and move manually.
Third, most recent issue, if my status is on the same line as the trigger, it wont go off at all.
For Example:
[randomstats][randomstats][randomstats][randomstats]You concentrate and sense their ki west of here.
Nothing happens in this case....
First I started with an Alias:
track (?P<target>.*)
Command:
SetVariable ("target", "%<target>")
Execute ("sense @target")
Options:
Regular Expression
Expand Variables
Send to Script
After this I have a trigger follow it up:
^(.*)You concentrate and sense their ki (?P<there>.*) of here.
Output:
%<there>
sense @target
Options:
Keep Evaluating (tried this on and off makes no difference)
Regular Expression
Expand Variables
Send to World
A couple quirks:
I have to use the track command twice. When I use it it will send whatever the previous variable was before it writes the new one in.
Sometimes get "stuck" where if part of the direction to where the target is includes a room with exits w,n,e and you're coming from the east and the target is north, it'll sometimes hang up and keep going east then west past that room. If I let it sit there for a minute or so it eventually fixes itself, but it's quicker to kill it and move manually.
Third, most recent issue, if my status is on the same line as the trigger, it wont go off at all.
For Example:
[randomstats][randomstats][randomstats][randomstats]You concentrate and sense their ki west of here.
Nothing happens in this case....