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


Joined: 03 Jan 2004
Posts: 1

PostPosted: Sat Jan 03, 2004 1:33 pm   

recast failed spells
 
Okay here's the deal.

I would like to create a trigger that allows me to cast several self spells. It also has to recast spells that fail. The problem is that the response to a failed spell is always :
"You lost your concentration."

Succeeding a spells has different responses for every spell.

SO if this happens:
cast 'armor'
You lost your concentration.

I'd like it to recast that spell, until this happens:
ast 'armor'
You feel someone protecting you.

then the next trugger should be called to continue with the nextselfspell.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Jan 03, 2004 6:43 pm   
 
Don't make this difficult. It's a simple matter of keeping track of what spell you are casting.
#AL spellup {#T+ Spellup;cast 'armor'}
#CLA Spellup disable
#TR {cast '(*)'} {#VA Spell {%1}}
#TR {You lost your concentration} {cast '@Spell'}
#TR {You feel someone protecting you} {cast 'nextselfspell'}
#TR {You feel like you've cast your lastselfspell} {#VA Spell {};#T- Spellup}
#CLA 0
#T- Spellup

EDIT: Removed extra #CLASS 0 command
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