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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: 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)
____________________________________________________________
(*)|-/|-/|-/|- /|-/|-/|-/|-/| {/****\} |\-|\-|\-|\-|\-|\-|\-|\-|(*)
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Mon Nov 23, 2009 1:23 am   
 
#regex {\*\|.*\s(\w)} {#additem pkillers %1}
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: 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}
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Nov 25, 2009 6:49 pm   
 
#if (!@clanmember) {#additem pkillers %1}
_________________
EDIT: I didn't like my old signature
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Nov 27, 2009 6:30 pm   
 
exactly.
_________________
EDIT: I didn't like my old signature
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: 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?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: 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.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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