Would it not be easier to create an attribute like game.countturnswet, and then in the turnscript have it check that variable? If it's less than 5 increment the value by one, and if the value is 5 display that message UNLESS the player is currently in the water, in which case reset the counter? Something like:
if (game.countturnswet < 5) {
game.countturnswet = game.countturnswet + 1
}
else if (game.countturnswet = 5) {
if (player.parent = water) {
game.countturnswet = 0
}
else {
msg ("Your clothes are now dry.")
}
}