----------card39------------------
On opencard 39

  put 39 into presentcard
if game_on is not 1 then
     if game_on is not 1 then
      play ikiclick
      put 4 into ntx
      naratoranimex
     end if
 end if
put 0 into chosened39
    

End opencard

On bolzhide
lock screen
hide btn bird2
hide btn octpus
hide btn ladybugs
hide btn zebra
unlock screen
End bolzhide

on bolzshow
lock screen
show btn bird2
show btn octpus
show btn ladybugs
show btn zebra
unlock screen
end bolzshow

On bird2_chosen
 bolzhide
      bird2mquiz
      put rdm39 * 2 into ans39
      QuizDlg4 "Cuntas patas de aves hay?", ans39
      repeat while quiz_quit = 0
         wait 30 ticks
      end repeat
      put 0 into quiz_quit

  if math_answer is not 1 then
        if math_answer is  -1 then
            play  uhoh2
        else
              play jawharp
          showwitch_surprised
         end if
       else
           play good
           show_frog_good
      end if



lock screen
repeat with x39 = 5 to 13
 hide btn %x39%
end repeat
unlock screen
bolzshow

End bird2_chosen


On octpus_chosen
bolzhide

      octpusmquiz
      put rdm39 * 8 into ans39
      QuizDlg4 "Cuntas patas de pulpo hay?", ans39
      repeat while quiz_quit = 0
         wait 30 ticks
      end repeat
      put 0 into quiz_quit

  if math_answer is not 1 then
       if math_answer is  -1 then
          play  uhoh2
        else
             play jawharp
          showwitch_surprised
        end if
       else
           play good
           show_frog_good
      end if



lock screen
repeat with x39 = 5 to 13
 hide btn %x39%
end repeat
unlock screen
bolzshow

End octpus_chosen






On zebra_chosen
 bolzhide
     
      zebramquiz
      put rdm39 * 4 into ans39
      QuizDlg4 "Cuntas patas de cebra hay?", ans39
      repeat while quiz_quit = 0
         wait 30 ticks
      end repeat
      put 0 into quiz_quit
  if math_answer is not 1 then
       if math_answer is  -1 then
          play  uhoh2
        else
              play jawharp
          showwitch_surprised
         end if
       else
           play good
           show_frog_good
      end if


lock screen
repeat with x39 = 5 to 13
 hide btn %x39%
end repeat
 unlock screen
 bolzshow

End zebra_chosen

On ladybugs_chosen
 bolzhide
     
      ladybugmquiz
      put rdm39 * 6 into ans39
      QuizDlg4 "Cuntas patas de mariquita hay?", ans39
      repeat while quiz_quit = 0
         wait 30 ticks
      end repeat
      put 0 into quiz_quit
  if math_answer is not 1 then
         if math_answer is  -1 then
          play  uhoh2
              else
             play jawharp
          showwitch_surprised
         end if
       else
           play good
           show_frog_good
      end if



lock screen
repeat with x39 = 5 to 13
 hide btn %x39%
end repeat
unlock screen
 bolzshow

End ladybugs_chosen














On bird2mquiz
lock screen
put random(9) into rdm39
repeat with n = 5 to 5 + rdm39 -1
 show btn %n%
 set bitmap of btn %n% to bird2
end repeat
repeat with n = 5 + rdm39  to 13
  hide btn %n%
end repeat
unlock screen
End bird2mquiz

On zebramquiz
lock screen
put random(9) into rdm39
repeat with n = 5 to 5 + rdm39 -1
 show btn %n%
 set bitmap of btn %n% to zebra
end repeat
repeat with n = 5 + rdm39  to 13
  hide btn %n%
end repeat
unlock screen
End Zebramquiz


On ladybugmquiz
lock screen
put random(9) into rdm39
repeat with n = 5 to 5 + rdm39 -1
 show btn %n%
 set bitmap of btn %n% to ladybugs
end repeat
repeat with n = 5 + rdm39  to 13
  hide btn %n%
end repeat
unlock screen
end ladybugmquiz

On octpusmquiz
lock screen
put random(9) into rdm39
repeat with n = 5 to 5 + rdm39 -1
 show btn %n%
 set bitmap of btn %n% to octpus
end repeat
repeat with n = 5 + rdm39  to 13
  hide btn %n%
end repeat
unlock screen
end octpusmquiz


-----------end card39--------------

