SPELL CAPTURE

Scripts and support for your favorite MUD client.
Wulv
Sojourner
Posts: 44
Joined: Wed Jul 28, 2004 12:40 am
Location: Michigan

SPELL CAPTURE

Postby Wulv » Tue Oct 05, 2004 9:47 am

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 set the circle variables manually...was thinking it shoudl be easy enough to do it by triggers. But so far I'm coming up short.

Thanks ALOT!
Uggrax - Troll Mauler / Eater of Many Things
Kelathor - Druid of Silvannus
---
Jnar - Barbarian Conjurer [Order of the Wyrm (1st Edition)]
Ambar
Sojourner
Posts: 2872
Joined: Tue Jul 02, 2002 5:01 am
Location: Our House in Va.
Contact:

Postby Ambar » Wed Oct 06, 2004 1:20 am

i just set up an alias i named dmem

it has all my spells in it

maybe someone can be more fancy .. sorry I cant :(
Drevarr
Sojourner
Posts: 25
Joined: Tue Jan 30, 2001 6:01 am
Location: Georgia
Contact:

Postby Drevarr » Wed Oct 06, 2004 2:22 am

Usage:
setlearn to grab your memorized spells once you have them all.
resetlearn to clear all the variables in case you want to setlearn again
relearn to deathpray your last setup captured from setlearn

Setup for PRAY, adjust as required for MEM.

Code: Select all

#CLASS 0
#ALIAS relearn {rest;#forall {@spell_list} {#repeat (%item( @spell_num, %ismember( %i, @spell_list))) {pray %i}}}
#ALIAS resetlearn {#VAR spell_list %null;#VAR spell_num %null;#say {Relearn Variables have been reset.}}
#ALIAS setlearn {tog paging;#t+ spellcaptureprep;pray}
#VAR spell_num {1|1|3|3|3|3|1|2|2|4|1|5|6}
#VAR spell_list {heal|holy shroud|destroy undead|dispel magic|ward undead|cure critic|remove poison|protection from evil|remove curse|create food|cure serious|armor|bless}
#VAR spellname {bless}

#CLASS {spellcapture}
#TRIGGER {(%d) - &spellname$} {spell_num=%additem( %1, @spell_num);spell_list=%additem( %2, @spell_list)}
#TRIGGER {You can pray no more spells.} {#t- spellcapture;#t- spellcaptureprep;tog paging}
#CLASS 0

#CLASS {spellcaptureprep}
#TRIGGER {You have memorized the following spells:} {#T+ spellcapture}
#CLASS 0

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 10 guests