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


Joined: 01 Jun 2005
Posts: 3
Location: miami, Fl.

PostPosted: Mon Sep 19, 2005 8:28 pm   

Codes for Dark Legacy fans here questions/answers
 
OK, here are one problem i having with 7.05 on windows xp
im trying to make a heal trigger on basic damage. here is the following coded

Code:
#trigger: player1 causes (xxx amount of) damage. <-- pattern
value: #if (400 < 3000) {cast heal} {smile}

if anyone can help with this coding please do. im not sure if the zmud program or the game itself Confused
please PM me or catch me on Dark-Legacy.com 9898 Sad
http://www.dark-legacy.com/
Zidane wrote:
this is the first time using this forum and im tried
_________________
Zidane Mauretania
Reply with quote
Slaem
Apprentice


Joined: 20 Sep 2005
Posts: 135

PostPosted: Tue Sep 20, 2005 6:40 am   
 
There are lots of auto heal scripts available via Search for ideas on how to implement one of your own.
_________________
Show your love.
Support Zugg Software!
Donate to zugg@zuggsoft.com with PayPal Send Money.
Reply with quote
Vitae
Enchanter


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

PostPosted: Tue Sep 20, 2005 4:22 pm   
 
you want it to trigger only on an amount of damage?
as in if you get hit for 400 pts to c heal, but if u get hit for 399pts 5 times not to do anything?
_________________
http://www.Aardwolf.com
Reply with quote
billaben
Wanderer


Joined: 02 Sep 2005
Posts: 60

PostPosted: Tue Sep 20, 2005 8:01 pm   
 
Humm... I'm guessing that what you're trying to say here is that you don't have a health prompt on your Mud but it does tell you how much damage you take.

Consider this. And note without seeing what all messages you get I'm not sure if this is a workable idea. You will have to expand on this and build similar triggers for every possible message your mud sends you regarding your current health or a change in health.

Code:
#CLASS {System|HealthTracker}
#VAR MaxHealth 3000
#VAR CurrentHealth 3000
#VAR HealThreshold 2000
!
!
#TRIGGER {(%w) causes (%d) damage.} {
  #MATH CurrentHealth @Currenthealth-%2
  #IF (CurrentHealth<HealThreshold) {#EXEC cast heal}
  #NOOP smile
  }
Reply with quote
zidane
Newbie


Joined: 01 Jun 2005
Posts: 3
Location: miami, Fl.

PostPosted: Thu Sep 22, 2005 2:17 am   
 
Vitae wrote:
you want it to trigger only on an amount of damage?
as in if you get hit for 400 pts to c heal, but if u get hit for 399pts 5 times not to do anything?
Yes something like that i want it to make it like between 400 < 3000. Because its rare to get hit over 3k plus my HP dont reach pass 3000. At less not yet Very Happy
_________________
Zidane Mauretania
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