Textmacro variable-issue

doin

New Member
Reaction score
1
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:

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
 

Forty

New Member
Reaction score
6
you cant pass variables with textmakros so it would be

//! runtextmacro RegionPoint("Move","Red","2","3")
 

doin

New Member
Reaction score
1
yeah, but then my system would lose it purpose for the major part of my operation/goal in mind
 

doin

New Member
Reaction score
1
allright then, can still save me a lot of time then(I hope, yet to test)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top