I am trying to display something in my HUD in a different color depending on the result of an If test.
However the If is being dealt with literally. Is there a way to flag code as do not parse? Or maybe the opposite, Do Parse?
The code example displays 000,000, MyName. I want it to recognize the output of the If statement as runnable code. Make sense?
I believe there are times when you want standard macro code parsed literally, and others not literally, but I can't find how to tell MQ2Code (or main) to switch between the two. I even forget what this is called but iirc there was a way to parse, and not parse, in C++. is there an escape character?
I hope my request is clear.
Thx in advance!
However the If is being dealt with literally. Is there a way to flag code as do not parse? Or maybe the opposite, Do Parse?
Rich (BB code):
MeInvis=3,6,650,300,${If[${Me.Invis},000,255]},${If[${Me.Invis},255,000]},000, ${Me}
The code example displays 000,000, MyName. I want it to recognize the output of the If statement as runnable code. Make sense?
I believe there are times when you want standard macro code parsed literally, and others not literally, but I can't find how to tell MQ2Code (or main) to switch between the two. I even forget what this is called but iirc there was a way to parse, and not parse, in C++. is there an escape character?
I hope my request is clear.
Thx in advance!

