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
Dark Court Jester
Newbie


Joined: 20 Jun 2002
Posts: 8
Location: USA

PostPosted: Sat Aug 03, 2002 10:20 pm   

Auto-Vitalize Mana
 
I use this at the end of each spell:

#if (@manavar <= 600 and @movevar >= 230) {cast 'vit'} {}

The problem with that is, it only cast's vitalize mana one time after each prompt check. I'd like it to read the prompt and anytime I drop below 600 mana and still have over 230 movement points that it vitalize's mana back up to 1000 or some set number. Is that possible?

Taking the armor trig for example:
Pattern: ^(%w) says, 'armor (%w)'
Commands: #if %ismember(%1,@BotUser) {#VAR spell armor
#VAR target %2
c 'armor' %2}
#if (@manavar <= 150 and @movevar >= 230) {cast 'vit'} {}

The excess BotUser, and VAR's are for my botlist and recast setup.

"For those with wings, fly to your dreams"
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Aug 04, 2002 12:26 am   
 
If you want to cast vitalize based on the prompt, then start by removing it from your spell triggers. Since you didn't supply a prompt, I've made one up. I've also made up a couple of spell completion messages:

#VAR vitcast 1 1
#TR {^(%d)/(%d)hp (%d)/(%d)ma (%d)/(%d)mv} {#VAR hp %1;#VAR maxhp %2;#VAR mana %3;#VAR maxmana %4;#VAR move %5;#VAR maxmove %6;#IF ((%3 < 601) AND (%5 > 229) AND @vitcast) {#VAR vitcast 0;cast 'vit'}} {} {nocr|prompt}
#TR {^You lost your concentration} {#IF @vitcast {} {#VAR vitcast 1}}
#TR {^You feel revitalized} {#VAR vitcast 1}


LightBulb
Senior Member
Reply with quote
Dark Court Jester
Newbie


Joined: 20 Jun 2002
Posts: 8
Location: USA

PostPosted: Sun Aug 04, 2002 1:31 am   
 
I tried the trigger and it wouldn't work.
The prompt is set for:
(%d)H (%d)M (%d)V 0X Mob: >

Vitalization context is: You feel your psyche improve.

Concentration context is: You lost your concentration!

Not sure if I painted good enough of a picture of what I'm looking for though. An example would be if I was to cast heal and drop below 600 mana and still have above 230 move then I'd vit back up to 1000 mana which would need to be preset somewhere and of course if I drop below 230 move it would stop casting vitalize mana, maybe have a warning say or some kind of warning get displayed if I drop below the set limits.

"For those with wings, fly to your dreams"
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Aug 04, 2002 7:31 pm   
 
Well, since your prompt doesn't match the one I made up, the trigger won't work without modification. I left out the end of the prompt since I wasn't sure if it would always be "0X Mob: >" or if it might sometimes be "23X Rat: >". Using different trigger points to begin and end casting revitalize naturally is much more complex than using the same trigger point.

#VAR revit 0 0
#VAR vitcast 1 1
#TR {(%d)H (%d)M (%d)V} {#VAR hp %1;#VAR mana %2;#VAR move %3;#IF ((%2 < 601) AND (%3 > 229) AND @vitcast) {#VAR vitcast 0;#VAR revit 1;cast 'vit'} {#IF ((%2 < 1000) AND (%3 > 229) AND @vitcast AND @revit) {#VAR vitcast 0;cast 'vit'}};#IF (%2 > 999) {#VAR revit 1}} {} {nocr|prompt}
#TR {^You lost your concentration} {#IF @vitcast {} {#VAR vitcast 1}}
#TR {^You feel your psyche improve} {#VAR vitcast 1}



LightBulb
Senior Member
Reply with quote
Dark Court Jester
Newbie


Joined: 20 Jun 2002
Posts: 8
Location: USA

PostPosted: Mon Aug 05, 2002 12:05 am   
 
Thanks, just got done testing it out and it works great. Exactly what I was looking for, thanks again.

"For those with wings, fly to your dreams"
Reply with quote
morgair
Beginner


Joined: 10 Nov 2000
Posts: 24
Location: USA

PostPosted: Mon Aug 05, 2002 8:22 am   
 
I think i see what your trying to do...make an alarm trigger to check every 10 seconds or so you can adjust it later put your ifcheck in that trigger and not just on your prompt and have your prompt trigger just capture your variables...
#if (need mana?) {c vit} {}
something like that...

Morgair, Master of the Obvious
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