Feature Request: More $p#

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Feature Request: More $p#

Post by kagonis » Mon Jun 16, 2003 2:59 am

I'm trying to make some of the macro's I've made as "intelligent" as I can, and as capeable of user interaction as I can.

I have allready made a sub routine that automatically figures out just how many parameters a macro (or sub routine) have been given, this is making it easier for me to write macro's that can handle many more parameters, specifying settings at execution, instead of hardcoding it into the macro.

However, the problem with this is that apparently I'm locked within a max 10 parameter limit, and the macro I'm working on right now requires 12 :(

Hope this could be raised to a higher number, thanks in advance :)

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Mon Jun 16, 2003 7:10 am

look in MQ.h for the line:

Code: Select all

#define MAX_STACKVARS 10
and change it to whatever number of $p vars you need to have... you should make a note of how many you need in macros written for more than 10 stackvars though, so others can edit and recompile their own (unless a higher number gets entered into CVS... I currently have mine set at 30, which should be plenty for most things.)

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Mon Jun 16, 2003 8:54 am

Thanks a lot :) Gonna up it to 30 here too :)