So to learn Twine2 (with Harlowe) I created a small story where the player fights against 1 of 2 opponents. I setup the opponents as $enemy1 and $enemy2 and then randomly choose one of those to fight against.
To not overwrite my original definitions I use the temp variable $opponent.
While the fight only changes the values in variable $opponent it can happen that in my first action the value in $enemy1/$enemy2 changes. Any idea why? Am I doing something wrong or is there a bug in Twine2.0.10?
Comments
To make a copy of the chosen enemy map try something like the following: Which creates a new empty map, then copies the contents of the original enemy map into it.