|
zidane Newbie
Joined: 01 Jun 2005 Posts: 3 Location: miami, Fl.
|
Posted: 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
please PM me or catch me on Dark-Legacy.com 9898
http://www.dark-legacy.com/
Zidane wrote: |
this is the first time using this forum and im tried |
|
|
_________________ Zidane Mauretania |
|
|
|
Slaem Apprentice
Joined: 20 Sep 2005 Posts: 135
|
Posted: 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.
|
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: 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? |
|
|
|
billaben Wanderer
Joined: 02 Sep 2005 Posts: 60
|
Posted: 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
}
|
|
|
|
|
zidane Newbie
Joined: 01 Jun 2005 Posts: 3 Location: miami, Fl.
|
Posted: 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 |
|
_________________ Zidane Mauretania |
|
|
|
|
|