So I am coding an AI in a Fnaf sort of game. When the enemy is in one of it's 13 positions, a list will be edited to only contain lines with rooms it can enter next, for example:
+When EnemyPosition = 1
+Only one action when event loops
-Reset EnemyList
-Change line 1 to "2"
-Change line 2 to "3"
-Change line 3 to "5"
When the enemy is in position 1, reset the list, and change lines 1-3 to have "2" "3" and "5" as available locations. Yet ingame, the list remains unedited.
This is weird to me, as it's hardly any different from list code I used in a previous game, which went like this:
+When PlayerPosition = 1
+Only one action when event loops
-Change line 1 to "2"
-Change line 2 to "2"
-Change line 3 to "3"
and so on. Does my new list not changing involve resetting it?