|
Aeleanth Newbie
Joined: 12 Jan 2005 Posts: 8
|
Posted: Mon Jan 31, 2005 7:10 pm
Trigger colour problems |
I made a trigger to have different colours when a player of the 'good' band cast an spell and when its a player of the 'evil' band, like this:
{@bad|@orcs|@goblins|@drows} %x cast*
{@bad|@orcs|@goblins|@drows} cast*
and another:
{@good|@elfs|@dwarfs|@helfs} %x cast*
{@good|@elfs|@dwarfs|@helfs} cast*
I have 2 different triggers for each band because there are players with a second name: for example: Wuind, and another with second name Wilaf Wand
The problem is that 'cast*' is always in the colour of the 'evil' band, and the second name too, but the name of the character appears in the correct colour.
Wilaf Wand cast* <-- he is an orc
Ertha Anzt cast* <-- he is an elf
What can I do to have each band in each colour?
like this:
Wilaf Wand cast* <-- orc
Ertha Anzt cast* <-- elf |
|
|
|
TonyWhispers Newbie
Joined: 30 Jan 2005 Posts: 8
|
Posted: Mon Jan 31, 2005 7:24 pm More Info Please |
Hello Aeleanth,
I know I can fully assist you with this if I better understood the logic and/or if you posted the full trigger (and subsequent directives). With that data, I can figure out why you're getting half the colours where you want them and provide a working snippet for you. |
|
_________________ zMUD Manual Source
Preventing Dead Posts: If the Tech Support solved your problem, please state as such. Thanks. |
|
|
|
Aeleanth Newbie
Joined: 12 Jan 2005 Posts: 8
|
Posted: Mon Jan 31, 2005 7:35 pm |
the full trigger i have is:
#trigger {{@good|@elfs|@dwarfs|@helfs} %x cast*} {#cw cyan}
#trigger {{@good|@elfs|@dwarfs|@helfs} cast*} {#cw cyan}
#trigger {{@bad|@orcs|@goblins|@drows} %x cast*} {#cw red}
#trigger {{@bad|@orcs|@goblins|@drows} cast*} {#cw red}
and everything except the name in the case of good, elf dwarf or helf, appears in red. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Jan 31, 2005 8:23 pm |
Make sure you have at least one item in each variable. If one of the variables is empty, anything with the same ending will match.
|
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
|
Pega Magician
Joined: 08 Jan 2001 Posts: 341 Location: Singapore
|
Posted: Mon Jan 31, 2005 8:33 pm |
Code: |
#trigger {^} {#t+ alignment} ""
#trigger {{@good|@elfs|@dwarfs|@helfs} %x cast} {#cw cyan;#t- alignment} "alignment" {case}
#trigger {{@bad|@orcs|@goblins|@drows} %x cast} {#cw red;#t- alignment} "alignment" {case}
#trigger {{@good|@elfs|@dwarfs|@helfs} cast} {#cw cyan;#t- alignment} "alignment" {case}
#trigger {{@bad|@orcs|@goblins|@drows} cast} {#cw red;#t- alignment} "alignment" {case} |
Command-line entry and in the same order please. |
|
|
|
|
|