On the mud I play, walking around briefed shows rooms like:
"On a balcony (n,e)"
and you can set an ansi variable so matching it isn't a problem.
This works as expected.
My hp bar echos output like:
It has multiple ansi codes in it, the first space nor the "HP:" are white on cyan, like the room short echos. Trace shows that it's not matching. However, the entire hpbar ends up on the clipboard. Disabling the RoomGrab trigger stops the behavior. (So it's not a conflicting trigger)
Thanks Nick! :)
"On a balcony (n,e)"
and you can set an ansi variable so matching it isn't a problem.
<triggers>
<trigger
back_colour="14"
bold="y"
clipboard_arg="1"
enabled="y"
match="^(.* (\(.*\)))$"
match_back_colour="y"
match_bold="y"
match_inverse="y"
match_italic="y"
match_text_colour="y"
name="RoomGrab"
regexp="y"
script="graphExits"
sequence="100"
text_colour="15"
>
</trigger>
</triggers>
This works as expected.
My hp bar echos output like:
HP: 756/1013 K: 498/498 SP: 224/224 V: 92% [[ AG:277 O:373 PE:158 B MB HS:18 ]] | 660637/337621 (92%)It has multiple ansi codes in it, the first space nor the "HP:" are white on cyan, like the room short echos. Trace shows that it's not matching. However, the entire hpbar ends up on the clipboard. Disabling the RoomGrab trigger stops the behavior. (So it's not a conflicting trigger)
Thanks Nick! :)