Quantcast XP Math - Forums - View Single Post - Game! (TI83 Program)
View Single Post
Old 05-03-2007   #2

Join Date: Nov 2006
Posts: 437

NOTE BY ARCHIVE: You may see // in the program. These are followed by comments I put. Do not enter these into your calculator!

PHP Code:
Lbl 2 
:Lbl 1
:Disp "Enter your name"
:Disp "And stats that"
:Disp "Add up to 100" // Archive it wouldn't fit on one  line so i had to carry it on to the next
:Input "Name?",Str1
:Input "Strength?",A
:Input "Intelligence?",B
:Input "Magic?",C
:Input "Charisma?",D
:If A+B+C+!= 100:Then //By the way, on the calculator, it's a = with a line through it; but that's impossible on a ASCII system.
:Disp "Sum is not 100!"
4A->//On the computer it's an actual arrow instead of a ->. See above.
:Disp "Welcome,"
:Disp Str1
:Disp "Fight a goblin!"
:Goto 3
:Lbl 3
:Disp "--Goblin--"
:Disp "HP:"
:Disp Y
:Disp "Attacks:"
:Disp "Claw: 75"
:Disp "Slash: 120"
:Disp "--You--"
:Disp "HP:"
:Disp H
:Disp "1) Steal HP"
:Disp "2) Revive"
:Disp "3) Lightning Strike"
:Input "Choice?",G
:While G=1
:While G=2
:While G=3
:While J=1
:While J=1
:Disp "You dealt"
:Disp I
:Disp "And healed"
:Disp O
:Disp "And recieved"
:Disp K
:If Y<=0:Then //On the calculator, it's an actual "less than or equal to", but see above comments.
:Goto 4
:If H<=0:Then
:Goto 5
:Goto 3
:Lbl 4
:Disp "You won!"
:Lbl 5
:Disp "You lost. :("

Last edited by Scion; 08-05-2007 at 01:10 PM..
Scion is offline