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
sepe
Novice


Joined: 09 Feb 2002
Posts: 39
Location: USA

PostPosted: Tue Feb 12, 2002 3:54 am   

yet anouther trigger prob
 
OK got a series set up, that well, almost works right. I'm either 99% of the way there or totally off.

What I'm trying is simple. Prior to any attack, I want to check my targets defences, if the target is missing resistance to poisons, I want to spit a certain poisons at him instead of the previously selected command. If the defence is up, then the attack goes on asusual. Since a successfull attack of this type kills in 3 seconds,no matter their current health, it could be rather handy.

SO what I have done so far
created a Variable

@IV

then an alias
qkill - #va IV 0 ;defences lancelot

that set the variable back to zero, thn doe sthe defences command on my taarget

Now first trigger I have is

pattern - is resistant to most poisons
command #va IV 1

Thus if the defence is up, the IV varible changes to 1

the last line of the defences scroll goes like

You have no more defences

I have a trigger off that pattern
command
#IF (@iv = 0) {qkill} {say @iv}

this is where it stops working
no matter what the varible is I always Say the number and NEVER perform the jkill alais. (BTW got it set to a say just to get it to work, and will change after next question)

What am I doing wrong? something simple right?

2nd question, for the false pattern, do I even need one. Since if it's false, I just want the next command to perform. BTW my intention to to install this alias into all my attack aliases, macros, to precede the regular alias, macro.


Dazed glazed and having fun
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Tue Feb 12, 2002 5:24 am   
 
Hmm, there's nothing wrong except that instead of the jkill alias, you invoke qkill in your final trigger. That would start an endless loop if you have any defenses enabled.

To answer your second question, there is no need to have a {false action} -- you can just leave it off. Some folks like to use #NOOP as the false statement, just to be consistent.

Troubadour
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