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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
MtnBkr16
Newbie


Joined: 18 Oct 2005
Posts: 4
Location: USA

PostPosted: Tue Oct 18, 2005 7:55 am   

Trigger help?
 
Kind of a weird pattern that I need to trigger off of...

[Info] =-> YoMomma has escaped defenceless from a fight. <-=

Can't figure it out myself... anyone got any idea?

Basically I need to be able to throw YoMomma into a variable, check it against a list of enemies and allies. If it's in the enemies list, I need to decap, on the allies list I need to heal them.

Thanks in advance =)
Reply with quote
GaidinBDJ
Wanderer


Joined: 15 Nov 2002
Posts: 52
Location: Las Vegas, Nevada

PostPosted: Tue Oct 18, 2005 3:10 pm   
 
#var EnemyList {Joe|Bob|John}
#var FriendList {Sue|Betty|Joan}

Pattern:
^~[Info~] =-~> (%w) has escaped defenceless from a fight.

Value:
#IF (%ismember(%1,@FriendList)) {heal %1}
#IF (%ismember(%1,@EnemyList)) {decap %1}
_________________
Barry
Gaidin @ 3k.org
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Tue Oct 18, 2005 3:18 pm   
 
Trigger:
~[Info~] ~=~-~> (%w) has escaped defenceless from a fight. ~<~-~=
Body:
#IF (%ismember( %1, @enemy_list)) {decap %1} {heal %1}

try this one out.
_________________
http://www.Aardwolf.com
Reply with quote
GaidinBDJ
Wanderer


Joined: 15 Nov 2002
Posts: 52
Location: Las Vegas, Nevada

PostPosted: Tue Oct 18, 2005 3:21 pm   
 
Vitae wrote:

#IF (%ismember( %1, @enemy_list)) {decap %1} {heal %1}


Just be careful with that one. That won't restrict to just healing your friend list. It will heal anybody who isn't an enemy.
_________________
Barry
Gaidin @ 3k.org
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Tue Oct 18, 2005 4:30 pm   
 
*mutter*
0 for 2 this week :(
I just assumed everyone else was the friends :-)
_________________
http://www.Aardwolf.com
Reply with quote
OmegaDeus
Apprentice


Joined: 14 Sep 2005
Posts: 121

PostPosted: Tue Oct 18, 2005 5:21 pm   
 
Remember, if you make an assumption you just make an ass out of u and mption. Razz
_________________


Look at me I've got zSKILLS
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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