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


Joined: 09 May 2003
Posts: 1

PostPosted: Fri May 09, 2003 12:32 am   

6.61 forall bug?
 
I'm having problems with some scripts in 6.61 which I haven't had before. I get an error message with lines like the following...

#FORALL @Mobs {#if (@AvoidList =~ %i) {MobsAvoid=%additem( %i, @MobsAvoid)}}

Is this a bug?
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Fri May 09, 2003 2:55 am   
 
You may need to put %i in quotes in some contexts now since it is expanded early.

Alternatively, you can use %repeatnum.

 - Charbal
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Sat May 10, 2003 12:02 am   
 
If you are getting a syntax error, you need to put either {} or "" around the %i in the =~ expression. Otherwise the syntax editor doesn't know how to parse the pattern for =~.

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