|
Masa Newbie
Joined: 07 Oct 2008 Posts: 5
|
Posted: Sat Nov 15, 2008 3:53 am
Need Healing script for Astaria |
I am looking to find out how to create a script that is based off of how much life I have.
The life meter so to speak on Astaria looks as follows:
HP: [ 98 / 174 ] SP: [ 201 / 213 ] EP: [ 276 / 276 ]
I want something where when HP is less than 50% or so, it will set off a trigger that executes a spell.
Would appreciate the help. |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Sat Nov 15, 2008 5:37 am |
Well, FYI... in the future post this type of question in the zMUD GenDiscuss forum. It doesn't belong in Finished Scripts. That aside...
Code: |
#TRIGGER {~[%s(%d)%s/%s(%d)%s~] SP: ~[%s(%d)%s/%s(%d)%s~] EP: ~[%s(%d)%s/%s(%d)%s~]} {
#IF (%eval(%float(%1) / %float(%2) * 100) < 50) {
cast 'heal' self
}
} |
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
|
|