Can't do ${} stuff to access array elements

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

OldNecro
a ghoul
a ghoul
Posts: 136
Joined: Thu Dec 19, 2002 3:09 am

Can't do ${} stuff to access array elements

Post by OldNecro » Fri Apr 23, 2004 10:39 pm

Just quick FYI...

/define KitePath array2

@KitePath(@Param0,${Math.Calc[@i+1]}),@KitePath(@Param0,@i))

...caused me to lose a couple pretty decent-sized clumps of hair.

The parser does *not* like to evaluate MQ2Data calls while referencing array elements...

quick fix...

/varset tmpy ${Math.Calc[@i+1]}
@KitePath(@Param0,@tmpy),@KitePath(@Param0,@i)

-OldNecro
Saddam Hussein begins to use An Innocent Bystander as a living shield!
An Innocent Bystander ceases protecting Saddam Hussein's corpse.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Fri Apr 23, 2004 10:47 pm

Yep, Lax already knows about this. I discovered it about a week ago.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Fri Apr 23, 2004 11:55 pm

work around it for now by doing a /varset on a temporary variable first, or something. When MQ2DataVars goes live you wont see any issues like this anymore. The problem is that there's 2 different parsers right now.. one for @variable and one for ${}. When MQ2DataVars is live, there will be 1 parser, and will only use ${}. That will eliminate all current problems with @variable.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0