Text File:
Code:
"You look around the cave and see <xITEMx>."
Seudocode
Code:
textVariable = text from file
If CoinHasBeenTaken = true and RopeHasBeenTaken = true then
replace <xITEMx> in textVariable with "nothing".
Else If CoinHasBeenTaken = true and RopeHasBeenTaken = false
replace <xITEMx> in textVariable with "a rope".
Else If CoinHasBeenTaken = false and RopeHasBeenTaken = true
replace <xITEMx> in textVariable with "a Gold Coin".
Else
replace <xITEMx> in textVariable with "a Gold Coin and a rope".
End If
Display textVariable
EDIT: When I first read your post I thought you were asking how to display the differences without changing the text files. I reread your post and it sounds like you may be trying to figure out how to remember the games current state as to what has been taken or not. There are several ways to do that. One is with variables as I used above. You could also use a multidimensional array of items with a name and a state flag. Another option is a long string of bits that represent the state of various game items. I have used all three methods for various things.