ScriptName WCArchivSecretDoor01
short Button
short Question
short Countmistakes
Begin OnActivate
Set Question to 1 ;
End
Begin GameMode
If Question == 0
Return
ElseIf Question == 1
MessageBox "Введите первое число", "1", "2", "3", "4", "5", "6", "7", "8", "9"
Set Button to GetButtonPressed
If Button == 3 ; Здесь поставить номер правильного ответа
Set Question to 2 ; В случае правильного ответа переходим к следующему вопросу
Set Countmistakes to countmistakes + 1
Else
Set Question to 2
EndIf
ElseIf Question == 2
MessageBox "Введите второе число", "1", "2", "3", "4", "5", "6", "7", "8", "9"
Set Button to GetButtonPressed
If Button == 7 ; Здесь поставить номер правильного ответа
Set Question to 3 ; В случае правильного ответа переходим к следующему вопросу
Set Countmistakes to countmistakes + 1
Else
Set Question to 3
EndIf
ElseIf Question == 3
MessageBox "Введите третье число", "1", "2", "3", "4", "5", "6", "7", "8", "9"
Set Button to GetButtonPressed
If Button == 5 ; Здесь поставить номер правильного ответа
Set Question to 4 ; В случае правильного ответа переходим к следующему вопросу
Set Countmistakes to countmistakes + 1
Else
Set Question to 4
EndIf
ElseIf Question == 4
MessageBox "Введите четвертое число", "1", "2", "3", "4", "5", "6", "7", "8", "9"
Set Button to GetButtonPressed
If Button == 4 ; Здесь поставить номер правильного ответа
Set Question to 5 ; В случае правильного ответа переходим к следующему вопросу
Set Countmistakes to countmistakes + 1
Else
Set Question to 5
EndIf
ElseIf Question == 5
MessageBox "Введите пятое число", "1", "2", "3", "4", "5", "6", "7", "8", "9"
Set Button to GetButtonPressed
If Button == 3 ; Здесь поставить номер правильного ответа
Set Question to 6 ; В случае правильного ответа переходим к следующему вопросу
Set Countmistakes to countmistakes + 1
Else
Set Question to 6
EndIf
ElseIf Question == 6
MessageBox "Введите шестое число", "1", "2", "3", "4", "5", "6", "7", "8", "9"
Set Button to GetButtonPressed
If Button == 4 ; Здесь поставить номер правильного ответа
Set Question to 7 ; В случае правильного ответа переходим к следующему вопросу
Set Countmistakes to countmistakes + 1
Else
Set Question to 7
EndIf
Elseif question == 7
MessageBox "Введите Седьмое число", "1", "2", "3", "4", "5", "6", "7", "8", "9"
Set Button to GetButtonPressed
If Button == 9 ; Здесь поставить номер правильного ответа
set countmistakes to countmistakes + 1
Set Question to 0
If Countmistakes >= 7
Activate
EndIf
Else
if ( button > -1)
Cast WCArchivDoorTrap Player
Set Question to 0
endif
EndIf
End
Забыли про Elseif question.