For example:
@echo off
setlocal enabledelayedexpansion
set 101=_
set 102=_
set 103=_
set 104=_
set 105=_
set 106=_
set 107=_
set 108=_
set 109=_
set 110=_
set 111=_
set 112=_
set 113=_
set 114=_
set 115=_
set 116=_
set 201=_
set 202=_
set 203=_
set 204=_
set 205=_
set 206=_
set 207=_
set 208=_
set 209=_
set 210=_
set 211=_
set 212=_
set 213=_
set 214=_
set 215=_
set 216=_
echo !101!!102!!103!!204!!205!!206!!207!!208!!209!!210!!211!!212!!213!!214!!215!!216!
echo !201!!202!!203!!204!!205!!206!!207!!208!!209!!210!!211!!212!!213!!214!!215!!216!
I'm using these numbered variables as coordinates to create a map. The real map will be bigger this is just for example "Currentlocation" is the variable for the current coordinate.
set currentlocation=204
set 204=O
O = the current placement on the map. I want to move left so I would use this:
set /a "currentlocation=currentlocation-1"
While I now have changed the currentlocation variable to the number I want, I also need that new number to become the variable "203". So that way I can change the content of variable 203 to O.
I also want to avoid using a variable search if possible, because I don't want this number to inflict with possible future variables I make.
So basically 203, 204 and currentlocation are variables on there own. The 203 and 204 hold ascii for the map such as =_*O. I need the batch program to recognize I have moved to that location so what I've tried doing is making currentlocation hold the number of the variable I want. So if currentlocation=203 I want the program to notice that the new number matches the variable 203 and replace the 203 variable ascii with O (to signify that i'm currently there on the map) hope this helps clear up any confusion.