Avalon
The First Age
HomeFAQSearchRegisterLog in
Post new topic   Reply to topic
 TriggersView previous topic View next topic Go down 
AuthorMessage
Axel
Newbie



Age : 19
Joined : 31 Aug 2007
Posts : 5
Localisation : United Kingdom

PostSubject: Triggers   Sat Sep 01, 2007 3:12 pm

Just a random comment, as it seems to be quite commonplace now for people to spam emotes in an attempt to fire someone's triggers.

If, when you make ANY triggers at all (this also works for color and echo triggers), you put a small ^ sign before you put in the PATTERN, then it will only fire if this text STARTS a line of your prompt.

i.e. I have a trigger to examine a blind rune when my sight is restored via mage dazzle, and I trigger the text 'Your sight is restored' as follows :

Pattern : ^Your sight is restored

Value : bl (alias for going blind)

This will ensure that any emotes or says or anything (except far image) will never fire a trigger, because they will always have something before the actual text, such as 'someone' or their name if it's an emote.
Back to top Go down
Tauria
Newbie



Joined : 01 Jul 2007
Posts : 9

PostSubject: Re: Triggers   Sat Sep 15, 2007 4:42 pm

Follow that with $ for a fully anchored trigger.

Anchoring is the process of ensuring your trigger ONLY ever fires on the EXACT line. The ^ [carrot] stops anything going before setting it off. The $ [dollar sign] makes certain that anything afterwards won't set it off either.

eg:

#tr {Your blindness is broken by * candescent lights.} {Blind}

this will fire on anything that matched the above PATTERN (the bit in the first brackets), no matter what comes before or after. People can randomly emote and it'll go off - also if they spell it wrong or end it wrong!

#tr {^Your blindness is broken by * candescent lights.} {blind}

anything going before will make thing trigger not work, eg an emote. Anything afterwards, however, eg a typo, another attempt to set off triggers, etc, will still set it off

#tr {^Your blindness is broken by * candecent lights.$} {blind}

Safest form of a trigger! Only that EXACT phrase sets it off.
Back to top Go down
TriggersView previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
Avalon :: Help and Support :: Zmud-
Post new topic   Reply to topic