set mcerto to char 1 to mcontlet of getAt(LLicRC, mt)
if mreslet = mcerto then
CorrerLetra(L)
put mreslet into field "Resp-Let"
if getAt(LLicRC, mt) = mreslet then
updateStage()
if the hilite of cast "C-sim" = 0 then
Espera()
end if
Resposta(mreslet)
MostraPrim()
end if
else
Resposta(mreslet)
MostraPrim()
end if
end if
end
on VerTecla
global mamo2, mcomp, mt, LLicTC
if the key = " " then
if not mamo2 then
MostraAm2()
else
if not mcomp then
MostraCom()
end if
end if
end if
if getAt(LLicTC, mt) = "L" then
if (the key >= "A") and (the key <= "z") then
set mr to 0
repeat with k = 27 down to 1
if (char 1 of field ("Let-" & k) = the key) and (the visible of sprite (k + 20) = 1) then
set mr to k
end if
end repeat
if mr > 0 then
ClickLetras(mr)
end if
end if
else
if mcomp then
if the key = 1 then
Resposta(1)
MostraPrim()
end if
if the key = 2 then
Resposta(2)
MostraPrim()
end if
if the key = 3 then
Resposta(3)
MostraPrim()
end if
end if
end if
end
on Resposta mrp
global TarResp, mt, mconseq, mtroca
if getAt(LLicTC, mt) = "T" then
if mrp = 1 then
set mresp to field "ComTex1"
else
if mrp = 2 then
set mresp to field "ComTex2"
else
if mrp = 3 then
set mresp to field "ComTex3"
end if
end if
end if
end if
if getAt(LLicTC, mt) = "I" then
if mrp = 1 then
set mresp to getAt(LLicCI1, mt)
else
if mrp = 2 then
set mresp to getAt(LLicCI2, mt)
else
if mrp = 3 then
set mresp to getAt(LLicCI3, mt)
end if
end if
end if
end if
if getAt(LLicTC, mt) = "L" then
set mresp to mrp
end if
append(TarResp, mresp)
if the hilite of cast "C-sim" = 1 then
set mtroca to random(2)
if mtroca = 1 then
if mresp = getAt(LLicRC, mt) then
play movie "P_Basq_C"
else
play movie "P_Basq_E"
end if
else
if mtroca = 2 then
if mresp = getAt(LLicRC, mt) then
play movie "P_Pat_C"
else
play movie "P_Pat_E"
end if
else
if mtroca = 3 then
if mresp = getAt(LLicRC, mt) then
play movie "P_Ska_C"
else
play movie "P_Ska_E"
end if
else
if mtroca = 4 then
if mresp = getAt(LLicRC, mt) then
play movie "P_Cor_C"
else
play movie "P_Cor_E"
end if
end if
end if
end if
end if
else
EsconderPar()
end if
updateStage()
end
on MostraObj Sp, Ob, X, Y
set the castNum of sprite Sp to the number of cast Ob
set mlarg to the width of cast Ob
set maltu to the height of cast Ob
if maltu > mlarg then
set mlarg to 150 * mlarg / maltu
set maltu to 150
else
set maltu to 150 * maltu / mlarg
set mlarg to 150
end if
set mesq to ((150 - mlarg) / 2) + X
set mdir to mesq + mlarg
set mtop to ((150 - maltu) / 2) + Y
set mbas to mtop + maltu
spriteBox(Sp, mesq, mtop, mdir, mbas)
end
on MostraAIU
global EobjAU, TobjAU, mamo2
set mamo2 to 1
set the visible of sprite 6 to 1
MostraObj(6, "AI-1", EobjAU, TobjAU)
updateStage()
end
on MostraAI1
global EobjA1, TobjA1
set the visible of sprite 1 to 1
MostraObj(1, "AI-1", EobjA1, TobjA1)
updateStage()
end
on MostraAI2
global EobjA2, TobjA2
set the visible of sprite 2 to 1
MostraObj(2, "AI-2", EobjA2, TobjA2)
updateStage()
end
on MostraCI
global EobjC1, TobjC1, EobjC2, TobjC2, EobjC3, TobjC3
set the visible of sprite 3 to 1
set the visible of sprite 4 to 1
set the visible of sprite 5 to 1
MostraObj(3, "CI-1", EobjC1, TobjC1)
MostraObj(4, "CI-2", EobjC2, TobjC2)
MostraObj(5, "CI-3", EobjC3, TobjC3)
updateStage()
end
on MostraATU
global mt, mamo2
set mamo2 to 1
set the visible of sprite 11 to 1
put getAt(LLicAT1, mt) into field "AmTexU"
if getAt(LLicTC, mt) = "L" then
set the textAlign of field "AmTexU" to "left"
else
set the textAlign of field "AmTexU" to "center"
end if
updateStage()
end
on MostraAT1
global mt
set the visible of sprite 12 to 1
put getAt(LLicAT1, mt) into field "AmTex1"
updateStage()
end
on MostraAT2
global mt
set the visible of sprite 13 to 1
put getAt(LLicAT2, mt) into field "AmTex2"
updateStage()
end
on MostraATSup
global mt
set the visible of sprite 14 to 1
put getAt(LLicAT1, mt) into field "AmTexSup"
updateStage()
end
on MostraATInf
global mt
set the visible of sprite 15 to 1
put getAt(LLicAT2, mt) into field "AmTexInf"
updateStage()
end
on Espera
startTimer()
repeat while the timer < 100
nothing()
end repeat
end
on MostraASU
global mt, mamo2, GSep
set mamo2 to 1
set the visible of sprite 18 to 1
updateStage()
set NS to the pathName & "Sons" & GSep & getAt(LLicAS1, mt)
repeat while 1
sound playFile 1, NS
repeat while soundBusy(1)
if the mouseDown then
exit
end if
end repeat
if the mouseDown then
exit
next repeat
end if
Espera()
end repeat
end
on MostraAS1
global mt, GSep
set the visible of sprite 16 to 1
updateStage()
set NS to the pathName & "Sons" & GSep & getAt(LLicAS1, mt)
repeat while 1
sound playFile 1, NS
repeat while soundBusy(1)
if the mouseDown then
exit
end if
end repeat
if the mouseDown then
exit
next repeat
end if
Espera()
end repeat
end
on MostraAS2
global mt, GSep
set the visible of sprite 17 to 1
updateStage()
set NS to the pathName & "Sons" & GSep & getAt(LLicAS2, mt)
repeat while 1
sound playFile 1, NS
repeat while soundBusy(1)
if the mouseDown then
exit
end if
end repeat
if the mouseDown then
exit
next repeat
end if
Espera()
end repeat
end
on MostraCT
global mt
set the visible of sprite 8 to 1
set the visible of sprite 9 to 1
set the visible of sprite 10 to 1
put getAt(LLicCT1, mt) into field "ComTex1"
put getAt(LLicCT2, mt) into field "ComTex2"
put getAt(LLicCT3, mt) into field "ComTex3"
updateStage()
end
on MostraCL
global mt, mreslet, mcontlet
set mreslet to EMPTY
put EMPTY into field "Resp-Let"
if getAt(LLicTA, mt) = "T" then
set the textAlign of field "Resp-Let" to "left"
else
set the textAlign of field "Resp-Let" to "center"
end if
set mcontlet to 0
set the visible of sprite 19 to 1
set the visible of sprite 20 to 1
repeat with mi = 1 to 27
set the visible of sprite (mi + 20) to 1
put
put char mi of getAt(LLicCL, mt) into field ("Let-" & mi)
end repeat
updateStage()
end
on MostraPrim
global mt, LLicTA, LLicTC, mhfinal, mamo2, mcomp, GExec, Lmax
set mt to mt + 1
if mt <= 2 then
set mta to getAt(LLicTA, mt)
set mtc to getAt(LLicTC, mt)
set mamo2 to 0
set mcomp to 0
if ((mtc = "T") or (mtc = "I")) and (the frame <> 10) then
go("Tarefas-TI")
else
if (mtc = "L") and (the frame <> 20) then
go("Tarefas-Letras")
end if
end if
if mt = 1 then
puppetSprite(1, 1)
puppetSprite(2, 1)
puppetSprite(3, 1)
puppetSprite(4, 1)
puppetSprite(5, 1)
puppetSprite(6, 1)
end if
if (char 1 of mta = "I") or (char 2 of mta = "I") or (mtc = "I") then
LerImagens()
end if
if mta = "I" then
MostraAIU()
end if
if (mta = "II") or (mta = "IT") or (mta = "IS") then
MostraAI1()
end if
if mta = "T" then
MostraATU()
end if
if (mta = "TI") or (mta = "TS") then
MostraAT1()
end if
if mta = "TT" then
MostraATSup()
end if
if mta = "S" then
MostraASU()
end if
if (mta = "SI") or (mta = "ST") or (mta = "SS") then
MostraAS1()
end if
else
set mhfinal to the time
set GExec to 0
set the keyDownScript to EMPTY
puppetSprite(1, 0)
puppetSprite(2, 0)
puppetSprite(3, 0)
puppetSprite(4, 0)
puppetSprite(5, 0)
puppetSprite(6, 0)
go(1)
EscreverResposta()
VerTudo()
end if
end
on MostraAm2
global mt, LLicTA, mamo2
set mamo2 to 1
if (getAt(LLicTA, mt) = "II") or (getAt(LLicTA, mt) = "TI") or (getAt(LLicTA, mt) = "SI") then
MostraAI2()
end if
if (getAt(LLicTA, mt) = "IT") or (getAt(LLicTA, mt) = "ST") then
MostraAT2()
end if
if getAt(LLicTA, mt) = "TT" then
MostraATInf()
end if
if (getAt(LLicTA, mt) = "IS") or (getAt(LLicTA, mt) = "TS") or (getAt(LLicTA, mt) = "SS") then
MostraAS2()
end if
updateStage()
end
on MostraCom
global mt, LLicTC, mcomp
set mcomp to 1
if getAt(LLicTC, mt) = "I" then
MostraCI()
end if
if getAt(LLicTC, mt) = "T" then
MostraCT()
end if
if getAt(LLicTC, mt) = "L" then
MostraCL()
end if
updateStage()
end
on EscreverResposta
alert("Esta é uma versão de demonstração. Para adquirir a versão completa entre em contato com a Mestre Software pelo fone (016) 272-6977 r.231.")