Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
antifire
Newbie


Joined: 18 Oct 2002
Posts: 2
Location: USA

PostPosted: Fri Oct 18, 2002 4:30 am   

trigger on colored text
 
Hello, I'm trying to make a trigger that distinguishes emote from say a spell wearing off. How would I go about making a trigger that detects ansi (ie bright yellow) with text "your luminous aura wear away". I tried using the ANSI Trigger in Edit Triggers, but haven't gotten it to work. Driving me nuts ;) any help would be great.

--Dan
Reply with quote
Death
Apprentice


Joined: 25 Jun 2002
Posts: 109
Location: USA

PostPosted: Fri Oct 18, 2002 4:35 am   
 
I've had this question before too, but since they helped me, I'll pass on what I know. Copy the text you want to be in the trigger, open up the editor. Windows then Editor. Make sure it is in RAW mode, you can find this in the options I believe. Then copy the text into there. You'll see a bunch of ansi coding. Copy that line into the trigger line to search for. Replace all the little weird box characters with %e. Make sure the ANSI trigger option is turned on and taadaa...just add in whatever you want it to do.

-Death
Reply with quote
antifire
Newbie


Joined: 18 Oct 2002
Posts: 2
Location: USA

PostPosted: Fri Oct 18, 2002 11:15 pm   
 
Thanks for the response, but I still can't seem to get it to work. To test it out I used %e[1;35m(Hide) Versykn CLERIC BREWING is hovering here.%e[0m for the pattern
I had type: "Pattern"
I had "ANSI Trigger" and "Trigger on Trigger" turned on for "Other Options"
and I had "Newline" checked
the value was just "say blah"
I tried checking different options and different trigger methods and types, Any ideas where I might have gone wrong?
Reply with quote
Lalaynya
Wanderer


Joined: 23 Aug 2002
Posts: 96

PostPosted: Fri Oct 18, 2002 11:31 pm   
 
quote:

Thanks for the response, but I still can't seem to get it to work. To test it out I used %e[1;35m(Hide) Versykn CLERIC BREWING is hovering here.%e[0m for the pattern
I had type: "Pattern"
I had "ANSI Trigger" and "Trigger on Trigger" turned on for "Other Options"
and I had "Newline" checked
the value was just "say blah"
I tried checking different options and different trigger methods and types, Any ideas where I might have gone wrong?



The parenthesis () around Hide....

Try:

%e[1;35m~(Hide~) Versykn CLERIC BREWING is hovering here.%e[0m 
Reply with quote
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: Wed Oct 23, 2002 6:15 pm   
 
I'm having trouble with this sort of trigger also. Here's the original pattern:

%e[1;31mArtemis Entreri DISARMS you!%e[0m

which i changed to:

%e[1;31m%* DISARMS you!%e[0m

so it would trigger on anything disarming me, not just Arty.

I have the same options checked as antifire mentioned. Any logical reason why this shouldnt work?

Thanks for your time
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Oct 23, 2002 7:43 pm   
 
Are you sure that is the exact ANSI sequence the MUD sends?

Sorry for the stupid question, but it is standard procedure.

Kjata
Reply with quote
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: Wed Oct 23, 2002 9:04 pm   
 
I copied and pasted the origional sequence from the mud to the trigger line, with the ansi option checked, and thats what showed up. Incedentally, i also tried using the Line Color option, which also wont cooperate.

It's not a huge deal if i don't get it to work, as a non-ansi trigger works fine. It's just one of those little things that bugs ya. The main reason i wanted an ansi trigger, was to prevent people from emoting that they disarmed me. I don't get alot of that anyway, so again, its no big deal. I just wanna understand how it works.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net