Sorry to post again, it seems I'm writing much here at the moment...
It's the second time I have pb with a if ... statement, but this time it seems it's not my fault.
I was coding some replies from a NPC according to the context. When something happens I turn a flag on.
At the beginning of my game I declare all the flag I will need and turn them off.
But when I made my replies, this code didn't work :
speak {
if flag off <thorn_seen> then {
msg <"We have to find some plants now", he answers.>
}
if flag on <thorn_seen> and flag off <livolas_poisonned> then {
msg <"Let's find something to free this noble lady", he answers.>
if flag on <livolas_poisonned> then {
msg <"I hope it's not too dangerous">
}
}
I tested it and acted so some flag could be turned on. It was like "flag off" wasn't recognised at all. Btw the property viewer notifies only about flags on, and doesn't tell about flags off.
then I remplaced all "flag off" to "not flag on", and it works correctly now.