[I7] Repeat

Encore moi !
Ce code ne marche pas :
Inform comprend la dernière ligne ( now the description of etc. ) comme une condition et me dit ceci :
Problem. In the sentence 'now the description of endroit is "[Descr02]"' , it looks as if you intend 'description of endroit is "[Descr02]"' to be a condition, but a text cannot be a description of rooms, so this must be incorrect.
I was trying to match this phrase:
now (description of endroit is "[Descr02]" - a phrase)
I recognised:
description of endroit is "[Descr02]" = a condition
Comprends pas...
Merci,
Thierry
P.S : Pourquoi [Descr02] ? parce que j'ai l'intention de la faire varier de manière aléatoire.
Ce code ne marche pas :
- Code: Tout sélectionner
Mazeroom is a kind of room.
...
When play begins:
repeat with endroit running through mazerooms:
now Descr02 is "Les dalles du sol semblent assez bon état.";
now the description of endroit is "[Descr02]".
Inform comprend la dernière ligne ( now the description of etc. ) comme une condition et me dit ceci :
Problem. In the sentence 'now the description of endroit is "[Descr02]"' , it looks as if you intend 'description of endroit is "[Descr02]"' to be a condition, but a text cannot be a description of rooms, so this must be incorrect.
I was trying to match this phrase:
now (description of endroit is "[Descr02]" - a phrase)
I recognised:
description of endroit is "[Descr02]" = a condition
Comprends pas...
Merci,
Thierry
P.S : Pourquoi [Descr02] ? parce que j'ai l'intention de la faire varier de manière aléatoire.