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
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Mar 13, 2002 4:12 pm   

Newbie auto-heal question
 
#TR {~{~[Hps (%d)/(%d)} {#IF ((%1 * 2) < %2) {cast heal;#T- healtrigger}} {healtrigger} {nocr|prompt}
#TR {You lost your concentration} {#T+ healtrigger}
//spell failed message
#TR {You feel much better now} {#T+ healtrigger} //spell succeeded message

LightBulb
All scripts untested unless otherwise noted
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Mar 14, 2002 1:17 am   
 
I am thinking you will probably want to do aa lot more later. So as to save us all a headache or two I feel it would be best if you had a proper prompt trigger set up right away. The only question I have is does the hide/invis ever show other spells that affect you?

#TRIGGER "Prompt" {^~{~[Hps (%d)/(%d)~]~[(*)~]~[(%d) mov~]~[(%d)/(%d) mana~]~[(*)~]~[ (%d) weight~]~}} {CurHp=%1;MaxHp=%2;#IF (%begins("%3","N/A") {Oppenent=""} {Opponent="%3"};Movement=%4;CurMana=%5;MaxMana=%6;SpellAffects=%trim("%7");Weight=%8} "" {nocr|prompt}

Thaat trigger is just meant to capture all prompt info. I would suggest using an expression trigger from that point on for your healing.

The plural of forum is forums for some odd reason. If it was something strange it would probably have ended up being "foree" which all would have hated...guess that is why it didn't happen.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Mar 14, 2002 3:31 am   
 
Lightbulb wrote it to shut off, so it wouldn't send 5 or six heals before you got a chance to cast healing. You should keep it as he had it (with the other 2 triggers corrected to your muds output), and add a third trigger:
#TR {succesful healing text inserted here} {#T+ healtrigger}

Yes you can use the full prompt trigger with Lightbulb's healtriger. All the full prompt one does is populate a number of variables for your use in future scripting.
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