|
Pagina 1 di 2 di Rocco C. "Yarin VooDoo" Continua, con questo quarto capitolo, l'ampia guida dedicata allo Scripting dei DVD Video con Sony DVD Architect Pro v4.5. N.B. Il tutorial è basato sulla versione 4.5 di DVD Architect, comunque è valido anche per le versioni precedenti che gestiscono gli scripting.
Quiz interattivo – Parte 3 Nell’esempio precedente abbiamo imparato ad impostare un GPRM come timer ed a sfruttare questa funzione per rendere più coinvolgente e frenetico il nostro quiz, ma è possibile rendere il tutto ancora più “piccante” impostando il timer non per l’insieme di tutte le domande, ma dando un tempo limite ad ogni singola domanda. Per fare questo basta apportare una piccolissima modifica agli script “Risposta Corretta” e “Risposta Errata” Risposta Corretta - GPRM2 = 0
- GPRM3 = GPRM3 + 1
- GPRM4 = GPRM4 + 1
- If (GPRM2 >= 15) then Link page: ‘Quiz (Page 8)’, button: ‘Default’
- If (GPRM3 >= 4) then Link page: ‘Quiz (Page 7)’, button: ‘Default’
- If (GPRM4 = 2) then Link page: ‘Quiz (Page 3)’, button: ‘Default’
- If (GPRM4 = 3) then Link page: ‘Quiz (Page 4)’, button: ‘Default’
- If (GPRM4 = 4) then Link page: ‘Quiz (Page 5)’, button: ‘Default’
- If (GPRM4 = 5) then Link page: ‘Quiz (Page 6)’, button: ‘Default’
- If (GPRM4 >= 6) then Link page: ‘Quiz (Page 8)’, button: ‘Default’
Risposta Errata - GPRM2 = 0
- GPRM4 = GPRM4 + 1
- If (GPRM2 >= 15) then Link page: ‘Quiz (Page 8)’, button: ‘Default’
- If (GPRM3 >= 4) then Link page: ‘Quiz (Page 7)’, button: ‘Default’
- If (GPRM4 = 2) then Link page: ‘Quiz (Page 3)’, button: ‘Default’
- If (GPRM4 = 3) then Link page: ‘Quiz (Page 4)’, button: ‘Default’
- If (GPRM4 = 4) then Link page: ‘Quiz (Page 5)’, button: ‘Default’
- If (GPRM4 = 5) then Link page: ‘Quiz (Page 6)’, button: ‘Default’
- If (GPRM4 >= 6) then Link page: ‘Quiz (Page 8)’, button: ‘Default’
In sostanza non abbiamo fatto altro che azzerare il timer ad ogni cambio di domanda. Dovremo, ovviamente, anche diminuire il tempo precedentemente impostato a 60 secondi ad un valore più idoneo come 10 o 15 secondi. Il tutto può essere abbellito utilizzando come sfondo dei menu delle nostre domande un video che contenga un timer della durata uguale a quella impostata negli script, quindi modificando anche la durata totale del menu ed il timeout per l’attivazione del pulsante invisibile che dovranno corrispondere alla durata del filmato. Va detto che in questo modo non avremo un controllo accurato del timer dato che verrà verificato solo ogni 15 secondi, quindi allo scadere del timer stesso, mentre in precedenza veniva verificato ogni secondo, tuttavia il sistema risulta funzionale allo scopo. Qui trovate il file d’esempio. (Quiz_03.dar)
|