|
daemoan.vermillious Apprentice
Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: Mon Nov 23, 2009 12:30 am
who pk listing |
This is something like my who list, and I would like to capture and add the names on who that have a * next to em to a variable list,
but I am having troble trigger to capture them...
and I only need the first word in the name column like relic or larcon
(*)|-/|-/|-/|-/|-/|-/|-/|-/|-/| {|Avatars|} |\-|\-|\-|\-|\-|\-|\-|\-|\-|(*)
Butcher *|Almighty| Relic the mortal Ninja (The Hitmen)
Newbie! |Almighty| Larcon the mortal Drow
Savage *|Almighty| Plague CMud 2.37 Dragon (The Hitmen)
____________________________________________________________
(*)|-/|-/|-/|- /|-/|-/|-/|-/| {/****\} |\-|\-|\-|\-|\-|\-|\-|\-|(*) |
|
|
|
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Mon Nov 23, 2009 1:23 am |
#regex {\*\|.*\s(\w)} {#additem pkillers %1}
|
|
|
|
daemoan.vermillious Apprentice
Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: Wed Nov 25, 2009 6:05 pm |
can we add an exclusion in there, to exclude my clan members, that I can manually ad in there...
#regex {\*\|.*\s(\w)} {#additem pkillers %1}{Exclude Stroker, Mondo, Relic} |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Nov 25, 2009 6:49 pm |
#if (!@clanmember) {#additem pkillers %1}
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
daemoan.vermillious Apprentice
Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: Fri Nov 27, 2009 7:16 am |
So mattam i writing it like this?
#regex {\*\|.*\s(\w)} {#if (!@clanmember) {#additem pkillers %1}}
and I would have my separate variable list for my clanmembers |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Nov 27, 2009 6:30 pm |
exactly.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
daemoan.vermillious Apprentice
Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: Sat Nov 28, 2009 5:26 am |
its doesnt seem to be adding the pkables names, but it does seem like it wants to..... is there a Pattern Conflict of some sort?
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Nov 28, 2009 6:51 am |
Oh, whoops. Can't believe I made that mistake. Since you have more than one clan member, you should probably use %ismember(%1,@clanmember) instead of just !@clanmember.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
daemoan.vermillious Apprentice
Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: Sun Nov 29, 2009 8:03 pm |
heya matt.
I still seem to have a conflict in there of some sort, its wanting to make it, cause i see it attemting to make the values in the pkillers its just not sending it like i should. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Nov 29, 2009 10:21 pm |
You aren't making much sense. Send them where? You didn't once ask about sending it to anywhere, you just wanted to capture the names and put them in a variable. My code does that, except that !@clanmembers was wrong (the %ismember version is what is supposed to go there).
Try littering the trigger code with #PRINT commands, so you can get a better idea of what it's doing. Sometimes you will run into bugs where commands for some reason don't work in certain combinations or aren't getting the correct info (ie, %format() will return a blank). |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|