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
Derzo
Beginner


Joined: 16 Sep 2001
Posts: 10

PostPosted: Wed Oct 31, 2001 1:16 am   

Recast Trigger
 
I have a recast trigger when I lose concentration I would recast the spell but now there are two types of spells so I need some help. So right now i have this:

#TRIGGER {You lost your concentration!} {#if %ismember(@spell,@Spells) {cast '@spell' @target};#if %ismember(@spell,@Jspells) {clan invoke '@spell' @target}}

@spell is the spell i want:
#TRIGGER {^(*) says, 'sanc (*)'} {#if %ismember(%1,@BotUser) {#VAR spell sanc; #VAR target %2;cast 'sanc' %2}

@Spells is a varible with a list of normal spells

@Jspells is a varible with a list of jihad spells

Thanks.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Oct 31, 2001 6:05 pm   
 
You neglected to say what the problems are, but it looks like your second trigger needs the jihad routine added.

#TRIGGER {^(*) says, 'sanc (*)'} {#if %ismember(%1,@BotUser) {#VAR spell sanc; #VAR target %2;#if %ismember(%1,@Spells) {cast '%1' @target};#if %ismember(%1,@Jspells) {clan invoke '%1' @target}}


LightBulb
Reply with quote
Derzo
Beginner


Joined: 16 Sep 2001
Posts: 10

PostPosted: Thu Nov 01, 2001 1:24 am   
 
Sorry, the problem is that neither of them work.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Nov 01, 2001 11:59 pm   
 
What does happen then?

It's possible that the single quotes or other punctuation marks are causing problems, if that's the case use the tilde (~) in front of them to inform zMUD not to parse them. Of course that's just a guess, since "not working" is a pretty broad description to troubleshoot.

LightBulb
Reply with quote
Hugo
Newbie


Joined: 02 Nov 2002
Posts: 1

PostPosted: Sat Nov 02, 2002 11:27 am   
 
Where do you place this...
#TRIGGER {You lost your concentration!} {#if %ismember(@spell,@Spells) {cast '@spell' @target};#if %ismember(@spell,@Jspells) {clan invoke '@spell' @target}}

I'm using zmud 5.55
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Nov 02, 2002 6:03 pm   
 
Hugo:
If you were paying attention, you'd notice that the last thing Derzo says is that neither trigger works. That means you don't put them anywhere.

LightBulb
Senior Member
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