|
Derzo Beginner
Joined: 16 Sep 2001 Posts: 10
|
Posted: 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. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
Derzo Beginner
Joined: 16 Sep 2001 Posts: 10
|
Posted: Thu Nov 01, 2001 1:24 am |
Sorry, the problem is that neither of them work.
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
Hugo Newbie
Joined: 02 Nov 2002 Posts: 1
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
|
|