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
Deveklem
Newbie


Joined: 06 Sep 2006
Posts: 3

PostPosted: Tue Oct 10, 2006 6:16 pm   

Need help to get "shielding" up in my health/mana/
 
Hello everyone!

I was hoping for some little advice here about an idea I had for ZMUD (I play Achaea but the stuff I'm looking for should probably be universal).

In Achaea, a person can "shield" or smoke "rebounding" (which stops my attacks) and I want that to put words in my health/mana/endurance/willpower prompt

(Example:

4612h, 3040m, 21960e, 12423w cexkdb- )

And when someone does this...

A nearly invisible magical shield forms around Metzger.

I would like for it to add "SHIELD" (or even Sh) to my Achaean prompt

(4612h, 3040m, 21960e, 12423w cexkdb SHIELD).

Keep in mind that the cexkdb should be ignored and change according to situation.

Anyone have any ideas or hints?

Thank you soooo much in advance!!!

Deveklem
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Oct 10, 2006 7:52 pm   
 
#TRIGGER {^A nearly invisible magical shield forms around {@Target}.$} {#T+ TargetShielded} "" {notrig|case}
#TRIGGER {^Various {@Target} shield dropping things.$} {#T- TargetShielded} "" {notrig|case}
#TRIGGER "TargetShielded" {%dh, %dm, %de,%dw ([cexdb@])-} {#PSUB {%1%ansi(high,red)SHIELDED%ansi(white)} %x1} "" {prompt|notrig|case}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
rajasetan
Beginner


Joined: 14 Sep 2006
Posts: 11
Location: Jakarta, Indonesia

PostPosted: Tue Oct 10, 2006 9:05 pm   
 
Or, alternatively you can use (UNTESTED)

#TRIGGER {^You suddenly perceive the vague outline of an aura of rebounding around %w.$} {#VAR enemy_rebounding 1} "" {notrig|case}
#TRIGGER {^A nearly invisible magical shield forms around %w.$} {#VAR enemy_shield 1} "" {notrig|case}
#TRIGGER {^Target performing any action causing the defs to be lost.$} {#VAR enemy_shield 0;#VAR enemy_rebounding 0} "" {notrig|case}

And add these lines somewhere in your current prompt trigger:

#IF (@enemy_shield = 1) {#ECHOP {%ansi(white,red)~[SH~]}}
#IF (@enemy_rebounding = 1) {#ECHOP {%ansi(white,red)~[RB~]}}
Reply with quote
Deveklem
Newbie


Joined: 06 Sep 2006
Posts: 3

PostPosted: Thu Oct 12, 2006 5:07 am   
 
Thank you both so much!!! I really appreciate it. Very Happy
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