home *** CD-ROM | disk | FTP | other *** search
- property usah, usav, usach, usacast, usapower, usaspd, usagoal, usacastlist, usaluck
- global gyusho
-
- on birth me, h, v, ch, c, p, s, g, cl, l
- set usah to h
- set usav to v
- set usach to ch
- set usacast to c
- set usapower to p
- set usaspd to s
- set usagoal to g
- set usacastlist to cl
- set usaluck to l
- set the castNum of sprite usach to usacast
- set the locH of sprite usach to usah
- set the locV of sprite usach to usav
- return me
- end
-
- on readyusa me
- if usacast = usach then
- set usacast to usacast + 6
- else
- set usacast to usach
- end if
- set the castNum of sprite usach to usacast
- end
-
- on startusa me
- set usacast to getAt(usacastlist, 1)
- set the castNum of sprite usach to usacast
- end
-
- on runusa me
- if usapower > 0 then
- set h to (usaspd + random(usaluck)) / 2
- if random(4) = 1 then
- set h to 50 - (usaspd * 3)
- end if
- set usah to h + usah
- set the locH of sprite usach to usah
- if usah >= 463 then
- set usagoal to 1
- set gyusho to usach
- go("goal")
- pass()
- end if
- set up to usapower - 1
- set usapower to up
- else
- if random(2) = 1 then
- set usapower to random(usaluck)
- end if
- end if
- set c to selectusacast(me)
- set usacast to c
- set the castNum of sprite usach to usacast
- end
-
- on selectusacast me
- set c to usacast
- set ichi to getPos(usacastlist, c)
- if ichi = 3 then
- set nextcast to getAt(usacastlist, 1)
- else
- set nextcast to getAt(usacastlist, ichi + 1)
- end if
- return nextcast
- end
-
- on goalusa me
- if usagoal = 1 then
- winusa()
- else
- lostusa()
- end if
- end
-
- on winusa me
- if usacast = (usach + 30) then
- set usacast to usacast + 6
- else
- set usacast to usach + 30
- end if
- set the castNum of sprite usach to usacast
- end
-
- on lostusa me
- if usacast = (usach + 54) then
- set usacast to usacast + 6
- else
- set usacast to usach + 54
- end if
- set the castNum of sprite usach to usacast
- end
-
- on ooanamode
- end
-