home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gclick1, gclick2, gpicture, clicklist, pictlist
- if (gclick1 <> 0) and (gclick2 <> 0) then
- puppetSound("NG")
- updateStage()
- set the castNum of sprite gclick1 to the number of cast "black"
- set the castNum of sprite gclick2 to the number of cast "black"
- set gclick1 to 0
- set gclick2 to 0
- set gpicture to 0
- updateStage()
- else
- set clickno to the clickOn
- set number to getOne(clicklist, clickno)
- set place to number / 2
- if (number mod 2) = 1 then
- pictchange(clickno, getAt(pictlist, place + 1))
- else
- pictchange(clickno, getAt(pictlist, place))
- end if
- end if
- end
-
- on pictchange chnum, pictname
- global gclick1, gclick2, gpicture
- puppetSprite(chnum, 1)
- set the castNum of sprite chnum to pictname
- puppetTransition(12, 1, 20)
- updateStage()
- if gclick1 = 0 then
- set gclick1 to chnum
- set gpicture to pictname
- else
- if gpicture = pictname then
- set gclick2 to chnum
- set name to string(pictname)
- puppetSound("OK")
- updateStage()
- go("ex" & name)
- else
- set gclick2 to chnum
- end if
- end if
- end
-