Trigger Help - regeneration

Posted by Osai on Wed 25 Feb 2004 02:31 AM — 2 posts, 10,995 views.

#0
I have been using MUSHclient for close to 5 years now. This is the first time I have used triggers, but this is the trouble I have.

The Mud I play on as an affects sheet where it shows all the affects your characrter currently has.

i.e. SPL: (4 hr) REGEN SETS REGEN

My trouble is when my "affects" trigger hits, it does not say how many hours of the spell is left. I know this sounds strange or wierd, but ill give you an example..

Trigger 1: * says, 'affects'
Sent: affects (brings up affects sheet)

Trigger 2: SPL: (* hr) REGEN SETS REGEN
sent: say I have %1 hours of regen left.


The 2nd trigger does not seem to work at all. It doesnt show how many hours...or for that matter show at all. Any help would be appreciated.
Australia Forum Administrator #1
First, I would make the first trigger an alias. I gather you "say affects" which your trigger picks up? Why not make an alias to do that?

Anyway, the second trigger should work, but triggers are finicky about things like spaces. Try copying the exact line you get from the MUD and put that into the trigger, replacing the number with the asterisk.

For example, if it really sends:

REGEN(space)(space)SETS REGEN(space)

Then that is what the trigger needs to match.

Also make sure the prompt isn't in front of it, eg.

<33/33 hp 100/100 m 110/110 mv> SPL: (* hr) REGEN SETS REGEN

You can work around most of that with another couple of wildcards, eg.

*SPL: (* hr) REGEN SETS REGEN*

In that case, of course, the number of hours is now wildcard 2, not wildcard 1.