Thankyou for the example, I studied it, it comes close, but what I really need is this...
For a better understanding of the problem, you may want to read my other post
entitled "Converting sqs to sqf, my script no longer works
It's hard to explain... But I'll try...
I already have 20 public variables defined in my init.sqs
E01Flg = 0;
E02Flg = 0;
E03Flg = 0;
I am trying to access those variables using the same manner that you are, but I'm getting
a scalar bool error which means the value stored in _TempVar...
_i = 10; //for example for E10Flg
_TempVar =  call compile format ["E%1Flg",_i];
_TempVar = 1;
publicvariable _TempVar; //...trying to assign the value 1 to E10Flg
...is not reaching the public variable E10Flg.
If I could indirectly access a public variable in such a manner
than it's uses would be astounding, if only I could unlock what
I'm doing wrong.
(1) See if you can create a public variable in an init.sqs file...
(2) Then try and access it through a counter variable
(3) Then attempt to change the original value stored in that variable.
(4) Then try to broadcast it again with publicvariable.
If you can fix that, I'll be so greatful, I'll even add you to the
top credits of the mission I am working on...