Identify everyone's city/commune.

by Amaru

Back to Mechanic's Corner.

Amaru2005-04-25 16:48:13
One thing I loved about Achaea was CTFs.

Especially the part where everyone's name appeared in a different colour depending on their city.

Here's my script I'm now using to give everyone a colour depending on their city/commune, with the least possible effort.

Note that the people I have in there are a very small proportion of people, it's just as a test. Also note that I've set my 0 colour (in zmud preferences) to a sort of dull purple for Glomdoring.

Commands are:

CELEST (PERSON)
UNCELEST (PERSON)

SEREN (PERSON)
UNSEREN (PERSON)

MAG (PERSON)
UNMAG (PERSON)

GLOM (PERSON)
UNGLOM (PERSON)

#CLASS {Color}
#CLASS 0
#CLASS {Color|Celest}
#ALIAS celest {
#class {Color|Celest}
#trigger {%1} {#cw 15}
#class 0
}
#ALIAS uncelest {
#class {Color|Celest}
#untrigger {%1}
#class 0
}
#TRIGGER {wolfen} {#cw 15}
#TRIGGER {leilani} {#cw 15}
#TRIGGER {whelan} {#cw 15}
#TRIGGER {aesyra} {#cw 15}
#TRIGGER {ordos} {#cw 15}
#TRIGGER {stagar} {#cw 15}
#TRIGGER {iraen} {#cw 15}
#TRIGGER {solvanis} {#cw 15}
#TRIGGER {brylle} {#cw 15}
#TRIGGER {maelon} {#cw 15}
#TRIGGER {rauros} {#cw 15}
#TRIGGER {anisu} {#cw 15}
#TRIGGER {amaru} {#cw 15}
#CLASS 0
#CLASS {Color|Serenwilde}
#ALIAS seren {
#class {Color|Serenwilde}
#trigger {%1} {#cw green}
#class 0
}
#ALIAS unseren {
#class {Color|Serenwilde}
#untrigger {%1}
#class 0
}
#TRIGGER {jiriki} {#cw green}
#TRIGGER {alef} {#cw green}
#TRIGGER {charis} {#cw green}
#TRIGGER {bakulao} {#cw green}
#TRIGGER {gwylifar} {#cw green}
#TRIGGER {munsia} {#cw green}
#TRIGGER {shorlen} {#cw green}
#TRIGGER {klia} {#cw green}
#TRIGGER {thaemorn} {#cw green}
#CLASS 0
#CLASS {Color|Magnagora}
#ALIAS mag {
#class {Color|Magnagora}
#trigger {%1} {#cw red}
#class 0
}
#ALIAS unmag {
#class {Color|Magnagora}
#untrigger {%1}
#class 0
}
#TRIGGER {brona} {#cw red}
#TRIGGER {valek} {#cw red}
#TRIGGER {briciu} {#cw red}
#TRIGGER {zhaine} {#cw red}
#TRIGGER {murphy} {#cw red}
#TRIGGER {morslade} {#cw red}
#TRIGGER {stavon} {#cw red}
#TRIGGER {destridas} {#cw red}
#TRIGGER {rexali} {#cw red}
#TRIGGER {caelthalas} {#cw red}
#TRIGGER {saddim} {#cw red}
#TRIGGER {rodanael} {#cw red}
#TRIGGER {revan} {#cw red}
#TRIGGER {daevos} {#cw red}
#TRIGGER {yuya} {#cw red}
#TRIGGER {sekk} {#cw red}
#TRIGGER {oryan} {#cw red}
#TRIGGER {tyamit} {#cw red}
#TRIGGER {devris} {#cw red}
#TRIGGER {gol,} {#cw red}
#TRIGGER {maedhros} {#cw red}
#TRIGGER {tavon} {#cw red}
#TRIGGER {lanthair} {#cw red}
#TRIGGER {melanchthon} {#cw red}
#TRIGGER {nikua} {#cw red}
#TRIGGER {iaknek} {#cw red}
#TRIGGER {jelaludin} {#cw red}
#TRIGGER {marcalo} {#cw red}
#TRIGGER {veonira} {#cw red}
#TRIGGER {drago,} {#cw red}
#TRIGGER {torgith} {#cw red}
#TRIGGER {sudoxe} {#cw red}
#TRIGGER {beren} {#cw red}
#TRIGGER {malachai} {#cw red}
#TRIGGER {ixion} {#cw red}
#TRIGGER {gruhk} {#cw red}
#TRIGGER {borca} {#cw red}
#TRIGGER {leviticus} {#cw red}
#TRIGGER {rakor} {#cw red}
#TRIGGER {anumi} {#cw red}
#TRIGGER {gorokan} {#cw red}
#TRIGGER {uziah} {#cw red}
#TRIGGER {sseravok} {#cw red}
#TRIGGER {asarnil} {#cw red}
#TRIGGER {corbenic} {#cw red}
#TRIGGER {genos} {#cw red}
#TRIGGER {tenqual} {#cw red}
#TRIGGER {yukari} {#cw red}
#TRIGGER {thompson} {#cw red}
#TRIGGER {kaervas} {#cw red}
#TRIGGER {silvanus} {#cw red}
#TRIGGER {olan} {#cw red}
#TRIGGER {alger} {#cw red}
#TRIGGER {yoninah} {#cw red}
#TRIGGER {thorgal} {#cw red}
#CLASS 0
#CLASS {Color|Glomdoring}
#ALIAS glom {
#class {Color|Glomdoring}
#trigger {%1} {#cw 0}
#class 0
}
#ALIAS unglom {
#class {Color|Glomdoring}
#untrigger {%1}
#class 0
}
#TRIGGER {ceres} {#cw 0}
#TRIGGER {elaria} {#cw 0}
#TRIGGER {lylah} {#cw 0}
#TRIGGER {feros} {#cw 0}
#TRIGGER {bauto} {#cw 0}
#TRIGGER {erion} {#cw 0}
#TRIGGER {bau} {#cw 0}
#TRIGGER {nyla} {#cw 0}
#CLASS 0
Unknown2005-04-25 17:02:20
It might work better, especially for short names, if you matched using case sensitive (with initial capital, of course) and added a %q to the end of the pattern.
Shiri2005-04-25 17:14:47
Also, Brylle is Seren and on the HELP MOONDANCERS scroll, so how you missed that I don't know. huh.gif
Amaru2005-04-25 17:20:27
Oops, I knew that. Must have just typoed absentmindedly.
Terenas2005-04-25 17:24:07
I always thought it'd be nice if the CTF player colors were always active, would be extremely handy in all the spams in team fighting, and no need to make so many variables or triggers for everyone's name.
Amaru2005-04-25 17:25:33
Ya, if you could turn it on and off it would be hot.
Terenas2005-04-25 17:26:40
QUOTE(Amaru @ Apr 25 2005, 05:25 PM)
Ya, if you could turn it on and off it would be hot.
106841


Idea it!
Amaru2005-04-25 17:29:43
I suggested it to the coders.

Please guys, this would not only make village influencing and events a million times better for us, it's innovations like this which bring players from other MUDs in DROVES. Droves I tell you.
Shiri2005-04-25 17:40:42
I agree, it would rock.

CONFIG COLOUR MAGNAGORANS RED.

Imperian had that sort of thing, right?
Sylphas2005-04-25 18:20:37
YES.

That would be awesome.
Thorgal2005-04-25 20:03:22
Yeah, having it color in-game like a CTF is a lot better than with zmud, having hundreds of name triggers will slow down your system considerably.
Jack2005-04-25 20:09:09
DEAR GOD YES.
Manjanaia2005-04-25 20:33:09
YAY! Please!
Singollo2005-04-25 23:00:46
Why aren't you just doing

#tr {{@celestians}} {#cw WTFEVERCOLOR}

with @celestians being a stringlist of people?
Unknown2005-04-25 23:16:34
... stringlist....
*hopes zMUD has better data structures than just a string list, like perhaps a binary search tree of strings or objects perhaps*

I agree though, it would be nice to have colors in the names. When I view honors certain people, I can't even tell where they come from at times, and I know they're from somewhere when that happens. Usually.
Malicia2005-04-26 03:59:31
Good idea
Athana2005-04-26 04:02:41
yeah pleasesign.gif
Drago2005-04-26 04:17:52
Imperian lets you color your allies, enemies and "marked", which is just an extra list of 20 people who you can have colored.
Terenas2005-04-26 06:02:58
QUOTE(Singollo @ Apr 25 2005, 11:00 PM)
Why aren't you just doing

#tr {{@celestians}} {#cw WTFEVERCOLOR}

with @celestians being a stringlist of people?
107077


Because I don't think anyone wants to go around asking if someone was a Celestian, Magnagoran, Serenwilder, or Glomdorito then go and put everytime in a 100 value stringlist!

And Imperian already did it, don't see why they can't do it here.
Singollo2005-04-26 06:14:56
I was refering to Amaru's script.