Is it in any way possible to get a variable in a textmacro so that it doesn't give the name of the variable but from what is assigned to it??
this is my code:
where amount is a string containing "1", but when I compile I get the error:
undeclared variable gg_rct_MoveRedamount when I want it to be gg_rct_MoveRed1
any help plz, otherwise I should stop trying at this system-thingy
this is my code:
JASS:
//! textmacro RegionPoint takes ORDERSTR,COLORSTR,AMOUNTINT,AMOUNTSTR
set $COLORSTR$Regions[$AMOUNTINT$] = gg_rct_$ORDERSTR$$COLORSTR$$AMOUNTSTR$
//! endtextmacro
JASS:
//! runtextmacro RegionPoint("Move","Red","testint","amount")
where amount is a string containing "1", but when I compile I get the error:
undeclared variable gg_rct_MoveRedamount when I want it to be gg_rct_MoveRed1
any help plz, otherwise I should stop trying at this system-thingy