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


Joined: 09 Jun 2003
Posts: 2
Location: USA

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
boggle
Newbie


Joined: 09 Jun 2003
Posts: 2
Location: USA

PostPosted: 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 lightbulbVery Happy
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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.
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