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


Joined: 07 Oct 2008
Posts: 5

PostPosted: 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.
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: 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
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