TF Prompt Trigger Problem

by relaren

Back to Mechanic's Corner.

relaren2008-02-09 01:34:52
Well, as well as I thought I knew TF, I am getting stuck on a simple trigger.
For some reason, it is catching my having balance, but nothing else....

CODE
339h, 351m, 351e, 0p, 585en, 645w ex-


And the trigger:

CODE
/def -n0 -p1075 -F -q -h"PROMPT (\\d+)h, (\\d+)m, (\\d+)e, (\\d+)p, (\\d+)en, (\\d+)w (.*)\\-" prompt_capture = \\
    /eval /set stat_health=$ %; \\
    /eval /set stat_health_percent=$ %; \\
    /eval /set stat_mana=$ %; \\
    /eval /set stat_mana_percent=$ %; \\
    /eval /set stat_ego=$ %; \\
    /eval /set stat_ego_percent=$ %; \\
    /eval /set stat_power=$ %; \\
    /eval /set stat_endurance=$ %; \\
    /eval /set stat_endurance_percent=$ %; \\
    /eval /set stat_willpower=$ %; \\
    /eval /set stat_willpower_percent=$ %; \\
    /eval /set stat_equilibrium=$ %; \\
    /eval /set stat_blind=$ %; \\
    /eval /set stat_deaf=$ %; \\
    /eval /set stat_balance=$ %; \\
    /eval /set stat_kafe_ingested=$ %; \\
    /eval /set stat_prone=$


Any pointers are greatly appreciated.


EDIT: After closer inspection, it is actually catching nothing.
Eamon2008-02-11 00:25:03
Don't know if you were able to resolve your trigger problem. My prompt trigger regexp looks like this:

/def -h"PROMPT ^(+)h, (+)m, (+)e, (+)p (.*)\\-" catch_prompt = \\
... macros, etc...

Mind you, that's without the endurance or willpower, but you get the idea. And be sure to
/set matching=regexp
Or include the "-mregexp" flag if you want it to match regular expressions.
relaren2008-02-12 13:16:13
Sorry, I nearly forgot about this thread for a moment. Yes, I did solve it, it was not a problem with the trigger. I was 95% sure of that, I looked over it many, many timess. It was actually another part of my tfrc that was causing the problem

Thanks for the reply, though.

Regards.