More changes, but it didnt work. I used P instead of Y. You select the first person to battle, then it loads. After it loads, it goes to the next battle and loads. The second battle works fine.
Code:
Code: :ClrHome
:AxesOff
:ZStandard
:ClrDraw
:Text(25,35,"LOADING")
:Shade({-}3,{-}1
:ClrHome
:ClrDraw
:1000→X:1000→P
:DelVar CDelVar DWhile X>0 and Y>0
:Text(1,1,Str2+":",X)
:Text(16,1,"BRIGGS:",p)
:Text(32,1,"HIT WHERE?")
:Text(40,1,"LOW=1 MID=2 HI=3")
:DelVar Z:Repeat Z=92 or Z=93 or Z=94
:randInt(1,3→D
:getKey→Z
:End
:ClrDraw
:If Z=92 and D=1
:Text(48,1,"BLOCKED")
:If Z=92 and D=2
:Then
:randInt(1,20→E
:X-E→X
:Text(48,1,"BRIGGS HITS")
:End
:If Z=92 and D=3
:Then
:randInt(1,20→E
:P-E→P
:Text(48,1,Str2+" HITS")
:End
:If Z=93 and D=1
:Then
:randInt(1,15→E
:P-E→P
:Text(48,1,Str2+" HITS")
:End
:If Z=93 and D=2
:Text(48,1,"BLOCKED")
:If Z=93 and D=3
:Then
:randInt(1,15→E
:X-E→X
:Text(48,1,"BRIGGS HITS")
:End
:If Z=94 and D=1
:Then
:randInt(1,10→E
:X-E→X
:Text(48,1,"BRIGGS HITS")
:End
:If Z=94 and D=2
:Then
:randInt(1,10→E
:P-E→P
:Text(48,1,Str2+" HITS")
:End
:If Z=94 and D=3
:Text(48,1,"BLOCKED")
:End
:ClrHome
:If X≤0 and P≥0
:Then
:"BRIGGS WINS GAME OVER
:prgmA
:ClrDraw
:AxesOn:Goto A
:End
:If P≤0 and X≥0
:Then
:"YOU WIN CONGRATS!
:prgmA
:ClrDraw
:AxesOn
:End
:Lbl G
:ClrHome
:AxesOff
:ZStandard
:Text(25,35,"LOADING")
:Shade({-}3,{-}1
:ClrHome
:ClrDraw
:X+491→X:1000→P
:DelVar CDelVar DWhile X>0 and P>0
:Text(1,1,Str2+":",X)
:Text(16,1,"TANK:",P)
:Text(32,1,"HIT WHERE?")
:Text(40,1,"LOW=1 MID=2 HI=3")
:DelVar Z:Repeat Z=92 or Z=93 or Z=94
:randInt(1,3→D
:getKey→Z
:End
:ClrDraw
:If Z=92 and D=1
:Text(48,1,"BLOCKED")
:If Z=92 and D=2
:Then
:randInt(1,20→E
:X-E→X
:Text(48,1,"TANK HITS")
:End
:If Z=92 and D=3
:Then
:randInt(1,20→E
:P-E→P
:Text(48,1,Str2+" HITS")
:End
:If Z=93 and D=1
:Then
:randInt(1,15→E
:P-E→P
:Text(48,1,Str2+" HITS")
:End
:If Z=93 and D=2
:Text(48,1,"BLOCKED")
:If Z=93 and D=3
:Then
:randInt(1,15→E
:X-E→X
:Text(48,1,"TANK HITS")
:End
:If Z=94 and D=1
:Then
:randInt(1,10→E
:X-E→X
:Text(48,1,"TANK HITS")
:End
:If Z=94 and D=2
:Then
:randInt(1,10→E
:P-E→P
:Text(48,1,Str2+" HITS")
:End
:If Z=94 and D=3
:Text(48,1,"BLOCKED")
:End
:If X≤0 and P≥0
:Then
:"TANK WINS GAME OVER
:prgmA
:ClrDraw
:AxesOn:Goto A
:End
:If P≤0 and X≥0
:Then
:"YOU WIN CONGRATS!
:prgmA
:ClrDraw
:AxesOn
:End