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: Thu Apr 07, 2011 3:53 am   

Trigger #if's
 
i made a trigger to auto bless from people sending me tells. when iam afk
some people been abusing it.....
can i add an #if like in the value to where ill only bless allies.
Xedric Baylor Prophet Matthias Etc.

much thanks
Dot Dot Dot
Evil or Very Mad
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4682
Location: Pensacola, FL, USA

PostPosted: Thu Apr 07, 2011 5:08 am   
 
make a string list

blessable="Josh|Justin|Alexia|etc"
#ADDITEM blessable Frank
#TR {(%w) tells you, "yo, bless me dude"} {#IF (%ismember(%1, @blessable)) {bless %1}}
or
#TR {({@blessable}) tells you, "yo, bless me dude"} {bless %1}
_________________
Discord: Shalimarwildcat
Reply with quote
daemoan.vermillious
Apprentice


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

PostPosted: Thu Apr 07, 2011 5:47 am   hmmmm a little trouble
 
Pattern:
%w tells you 'desanc %2'

VAlue:
#IF (%ismember(%1, @valids)) {krecall;turn tome 10;chant %2;n}

doesnt seem to fire, prolly cause i put something wrong in pattern...

Thanks for SAving My Day:)
Dot Dot Dot
Reply with quote
Moo
Apprentice


Joined: 10 Apr 2009
Posts: 145

PostPosted: Thu Apr 07, 2011 11:17 am   Re: hmmmm a little trouble
 
daemoan.vermillious wrote:
Pattern:
%w tells you 'desanc %2'

^(%w) tells you 'desanc (*)'

or if the second is just one word..

^(%w) tells you 'desanc (%w)'
Reply with quote
mandy
Novice


Joined: 10 Jul 2007
Posts: 47

PostPosted: Wed Apr 20, 2011 12:32 am   
 
{Friend1|Friend2|Friend3|friend4} tells you: bless me dude

bless %lower(%1)



(I use this method for kill triggers when partying with allies and im allowed to steal the corpses :)
Reply with quote
mandy
Novice


Joined: 10 Jul 2007
Posts: 47

PostPosted: Wed Apr 20, 2011 12:32 am   
 
{Friend1|Friend2|Friend3|friend4} tells you: bless me dude

bless %lower(%1)



(I use this method for kill triggers when partying with allies and im allowed to steal the corpses :)
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