The Task: It is planning that Nao should ask humans some questions and give answer variants. The people should give one answer variant per question but after every five question, Nao should say: Ok, you answered on 5 questions and gave 3 correct and 2 incorrect answers. Please, try again.
The realization: The questions and answer variants are realized in the Choreography Dialog but I can't understand how can I call the variable from Python script in the Dialog.
I call the calculated variable in Dialog (QiChat) like this:
topic: ~addition()
language: enu
u:([c]) Yes, it's the correct answer.
%script
p=+1
%script
But how in such case to do that the value of the variable should be understood by QiChat and nao will say the value of variables?
This example nao can't say, it will be missing during dialog.
%script
print p
%script
Such approach to connect dialog and python script doesn't work:
$cnt = %script p %script