|
boggle Newbie
Joined: 09 Jun 2003 Posts: 2 Location: USA
|
Posted: Mon Jun 09, 2003 2:52 am
help with auto adepting |
Hi, the mud I'm on is RealmsofDespair
I made a variable with all the spells I want to adept..
And need help removing a spell from the variable on a trigger like the one below..
You are now an adept of grounding!
the variable looks like this
#VAR spells {grounding|holy sanctity|nimbus of light|continual light|cure poison}
But i also want to know how to cast each spell in the variable @spells ..
without having to add the word "cast" in the variable
Also some spells with more than one word uses apostrophes ex. cast 'cure light'
If someone can shed some light that would be awesome thanks
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Jun 09, 2003 3:12 am |
Removing spells is easy.
#TRIGGER {You are now an adept of (*)!} {#DELITEM spells {%1}}
To cast each spell in the list, you can use #FORALL. The easiest solution to providing single quotes is to use them around all spell names.
#ALIAS castalot {#FORALL @spells {cast '%i'}}
LightBulb
Advanced Member |
|
|
|
boggle Newbie
Joined: 09 Jun 2003 Posts: 2 Location: USA
|
Posted: Sun Aug 03, 2003 1:08 am |
thanks Lightbulb!
it worked great..
i also have another question for you if you dont mind
Its about color triggers
I am using 6.16 and have trouble getting triggers with colors to work
(*) DISARMS you! (in red)
The eldritch sphere about you winks from existence. (in yellow)
The luminous aura about your body fades away. (in yellow)
I've read the helpfile and it says to go to trigger options
then check ansi trigger,copy the specified text and ctrl+V paste it into the box and it should save the ansi colors the trigger uses...
Ive tried it unchecking 'trigger on trigger' and checking 'ansi trigger'
Ive also tried setting the color of fore and background in the trigger on color box
Either way it didnt work and they only work when i dont use colors or 'ansi trigger' [?][?]
Thanks again lightbulb |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Aug 03, 2003 3:16 am |
I believe this worked if you highlight the text in the main window, then go to the editor window and use Ctrl-V to paste it to the pattern. If not, I don't remember how to do it.
However, this problem was brought up frequently back when 6.16 was still the CURRENT public version and the solutions, if any, should be easy to find using the Search link as long as the posts haven't been archived yet. You'll probably have to go back about a year. |
|
|
|
|
|