Problem with /varadd

For questions regarding conversion of scripts from the old, parm style to the new MQ2Data format. Conversion questions only!

Moderator: MacroQuest Developers

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Problem with /varadd

Post by Mckorr » Thu Apr 29, 2004 3:05 pm

Current line is

/varadd ObstacleCount 1

I keep getting Lax cursing at me... really really fast, since this loops a bunch.

What's the proper way now?

MrSmallie
a hill giant
a hill giant
Posts: 167
Joined: Fri Oct 11, 2002 11:18 am

Post by MrSmallie » Thu Apr 29, 2004 3:11 pm

Me
[img]http://home.comcast.net/~mrsmallie/ches.JPG[/img]

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

Post by ml2517 » Thu Apr 29, 2004 3:17 pm

Just do:

/varcalc ObstacleCount ${ObstacleCount}+1

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Thu Apr 29, 2004 3:23 pm

Thanks. Should have done a search first, the answer was actually easy to find. Stupid me. Thanks for the help.