|
AMetnik Newbie
Joined: 29 Aug 2009 Posts: 4
|
Posted: Sun Aug 30, 2009 3:50 am
Simple problem about triggers and priority + #cw |
Hi all, thanks in advance for your help to my problem.
It is like this, i want to have a base colour for all things that start with:
You
made that quite simple with:
pattern: You *
value: #CW teal
this works, and then i would like a trigger to superseed this, so i can get another colour on "You improve..."
pattern: You improve *
value #CW 6
Now i tried changing around the priorities, but it just doesnt work, no matter what the priorities is, it colours everything teal...
Anyone got a clue to help me?
Thanks
AMetnik |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Sun Aug 30, 2009 12:29 pm |
the you improve should have a higher priority #. The lowest number gets processed first.
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
AMetnik Newbie
Joined: 29 Aug 2009 Posts: 4
|
Posted: Tue Sep 01, 2009 10:37 am |
Thanks for your reply, still aint working then :-(
Anyone knows a reason for that? |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Tue Sep 01, 2009 2:48 pm |
It works fine for me. Some things to check: Are both triggers enabled, and are the classes and modules they are in enabled? Is the triggers in the same module, or is the second trigger attached to a different window? Have you checked for syntax errors--are you certain the second trigger compiles? Does the second trigger work if the first one is disabled?
|
|
|
|
AMetnik Newbie
Joined: 29 Aug 2009 Posts: 4
|
Posted: Thu Sep 03, 2009 2:36 pm |
actually works on another system... kinda weird :(
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Thu Sep 03, 2009 10:55 pm |
Do you have multi copies of the trigger in a diss package/class/module?
If so it could have a priority tht throws you off. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
AMetnik Newbie
Joined: 29 Aug 2009 Posts: 4
|
Posted: Wed Sep 09, 2009 8:41 am |
nope, no duplicates
|
|
|
|
Liath Novice
Joined: 25 Aug 2009 Posts: 38
|
Posted: Sat Sep 19, 2009 9:02 am |
Something that has helped me, and I dunno why...
copy the pattern and then the script to notepad (i keep it open for this when I get it)
delete trigger that isn't working
recreate the trigger.
Sometimes I've noticed that scripts just... don't work sometimes.
I think it has to do with ID numbers.... not 100% sure, but I know it's annoying and it has happened to me a time... or 20. |
|
|
|
Posideon Beginner
Joined: 06 Feb 2005 Posts: 26
|
Posted: Sun Sep 20, 2009 3:57 pm |
I agree with Liath, every once in a while i've got to just cut/paste some setting for it to start working properly. Had a problem with my directions/keypad packages a while back, so i deleted them and downloaded new ones off the code library. Works fine, but now every once in a while i have to cut/paste either the cardinal dir or the ne/se/sw/nw dirs. I just select the folder and ctrl+x, ctrl+v. works fine, and the only thing that does is change the id#'s
|
|
|
|
|
|