I'm trying to get this procedure to check whether the user lands on a treasure square and if they do they get gold. Also the treasure can only be landed on 3 times until it turns into a bandit, therefore after each time the player lands on it the tile's name changes, to T2
, T3
, B
. Whenever I attempt to run my code an error appears saying can't assign to literal
.
This is my code: