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


Joined: 01 Oct 2004
Posts: 9

PostPosted: Tue Oct 05, 2004 9:28 am   

Spell Capture
 
Good Day,

I am trying to set up a routine that will capture what spells I currently have memmed and place them in a set of variables so taht I can simply "relearn" upon death and it will mem all the spells I have set.

Here is the output from the mud:

You have memorized the following spells:
( 3rd circle) 1 - jar the soul
( 2nd circle) 1 - bless
1 - cure serious
4 - spiritknife
( 1st circle) 3 - cure light
4 - totem darts

You can pray no more spells.

What I am trying to make is somethign that will allow me to type "relearn" and it will mem all these spells. I can do this now but I have to enter it manually...was thinking it shoudl be easy enough to do it by triggers. But so far I'm coming up short.

Thanks ALOT!
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Oct 05, 2004 3:01 pm   Re: Spell Capture
 
#TR ms {You have memorized the following spells:} {#VAR memspells {}}
#COND {(%d) - (*)} {#ADDK memspells {%2} {%1}} {Looplines|Param=99}
#TR {You can pray no more spells} {#STATE ms 0}
#AL relearn {#LOOPDB @memspells {#LOOP %val {pray %key}}}
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or 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