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


Joined: 01 May 2002
Posts: 18

PostPosted: Mon Oct 14, 2002 4:47 am   

Bug?
 
I'm using 6.16 this may be fixed in the newer version not sure. Anyway this is what it is.

I have an alias that looks something like this..
----
attackalias
#if {@a>0} {#loop 1,@a {kill a %{i}}}
#if {@b>0} {#loop 1,@b {kill b %{i}}}
#if {@c>0} {#loop 1,@c {kill c %{i}}}
#if {@d>0} {#loop 1,@d {kill d %{i}}}
look
----
the way I use it is in an expression trigger that's something like this
----
expression: @checkmob=1
%if(@mob=0, aliasa)
%if(@mob=1, attackalias)
#var checkmob 0
----
works fine... then I add one line to the alias at the end
this: #var combat 1
and it runs the alias twice for some reason
I haven't used the combat variable in anything yet, just in that alias...
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Oct 14, 2002 2:43 pm   
 
Change the control variable first:
expression: @checkmob=1
#var checkmob 0
%if(@mob=0, aliasa)
%if(@mob=1, attackalias)
#var checkmob 0


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