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
porcelina
Beginner


Joined: 20 Jun 2004
Posts: 20
Location: USA

PostPosted: Thu Mar 30, 2006 3:33 am   

prompt letters
 
I have a prompt that looks like this:

1170h, 1170m ex-

It may have other letters in it at any given time representing various defenses. I also, already use a prompt trigger to update my health and mana info. But what I would also like to do is trigger on the letter x.

If the x is there it is a defence if not there I would like to put the defence back up. I researched a bit and it seems I may have to trigger all the letters that may apear and the order in which they may appear? so x may be %4 but I was hoping there may be an easier way.

trigger: x disapearing
action: xdefence

any ideas would be appreciated.

Porcelina
_________________
carol
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Thu Mar 30, 2006 7:53 am   Re: prompt letters
 
It would probably be easiest to modify your existing prompt trigger to something like:

#TRIGGER {^(%d)h, (%d)m (%w)-} {#VAR HP %1;#VAR MP %2;#IF (%match(%3, [x]) = 0) {create_defense_command}}

This is only one example of what your existing prompt trigger may look like. In order for it to continue working, don't modify the parts not shown in blue.

Here it is as it would appear in the Settings Editor:

TRIGGER: ^(%d)h, (%d)m (%w)-

ACTION:   #VAR HP %1
                #VAR MP %2
                #IF (%match(%3, [x]) = 0) {create_defense_command}
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