|
savik Newbie
Joined: 09 May 2003 Posts: 1
|
Posted: 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? |
|
|
|
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: 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 |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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 =~.
|
|
|
|
|
|