http://calcg.org/newlogo2.png Not Logged in.
Login | Register

General Discussion Board \ Calculator Discussion \ Can someone help me with my code?

Click here to log in (you must be logged in to post comments).

AuthorComment
Jayko
Probe
Posted: 6 Sep 2004
19:06 GMT
Total Posts: 13
Can Some who owns a TI-85 please help me with this code?
I've experimented more than several times and I cant figure out why it wont work!
Store: -> Not equal: \=
----PLEASE POST!----
**********************************************************************


ClLCD
Outpt(1,6,”THE RIFT”)
Outpt(2,10,”by”)
Outpt(3,2,”Pheonix Interactive)
Pause
ClLCD
Disp “Choose Difficulty”
Disp “Level”
Menu(1,”1”,W,2,”2”,X,3,”3”,K)
5->Health
0->Miss
10->CX
10->X
0->Score
0->S
Goto A
Lbl A
(iPart (rand*10))->D
If D>5
CX+2->CX
If D<5
CX-2->CX
If CX>19
19->CX
If CX<1
1->CX
Outpt(1,CX,”-o-“)
(iPart (rand*10))->CS
If CS>=9
Goto CFIRE
Goto B
Lbl B
Outpt(8,X,”<+>”)
getKy->K
If K==26
X+2->X
If K==24
X-2->X
If X<1
1->X
If X>19
19->X
If K==21
Goto C
If K==31
Stop
If K==11
0->Miss
If K==105
Goto O
ClLCD
Outpt(8,X,”<+>”)
Goto A
Lbl C
Outpt(7,X+1,”^”)
Outpt(6,X+1,”^”)
Outpt(5,X+1,”^”)
Outpt(4,X+1,”^”)
Outpt(3,X+1,”^”)
Outpt(2,X+1,”^”)
Outpt(1,X+1,”^”)
X->S
If (CX+1)==S or (CX-1)==S or (CX)==S
Goto Z
If CX\=S
Goto M
If (CX+1)\=S
Goto M
If (CX+2)\=S
Goto M
Lbl Z
1+Score->Score
If Score==15
Goto P
Disp Score
Goto A
Lbl M
Updates Misses
1+Miss->Miss
If Miss==M
Goto V
Outpt(1,1,Miss)
Goto A
Lbl V
ClLCD
Disp “YOU LOSE!”
Disp “Level=”
Disp J
Disp “Score=”
Disp (Score*120)
Stop
Lbl W
1->J
30->M
Goto D
Lbl X
2->J
20->M
Goto D
Lbl K
3->J
10->M
Goto D
Lbl P
Disp “YOU WIN!”
Disp (Score*120)
Stop
Lbl O
ClLCD
Outpt(4,9,”PAUSED”)
Pause
ClLCD
Disp “Score=”
Disp Score
Disp “Misses=”
Disp Miss
Disp “Health=”
Disp HEALTH
Pause ClLCD
Goto A
Lbl CFIRE
Outpt(2,CX+1,”:”)
Outpt(3,CX+1,”:”)
Outpt(4,CX+1,”:”)
Outpt(5,CX+1,”:”)
Outpt(6,CX+1,”:”)
Outpt(7,CX+1,”:”)
CX->CSH
If CSH==X or (CSH+1)==X or (CSH+2)==X
HEALTH-1->HEALTH
If HEALTH==0
Goto V
Outpt(8,1,HEALTH)
Goto A


Jayko
Probe
Posted: 6 Sep 2004
19:14 GMT
Total Posts: 13
Hello?
Jayko
Probe
Posted: 6 Sep 2004
19:17 GMT
Total Posts: 13
I've gotta go... but, if you found my problem I'll check back at some point in my pathetic wothless life....
allynfolksjr
Administrator
avatar
Posted: 6 Sep 2004
20:07 GMT
Total Posts: 1892
Um, is there a error somewhere?
zkostik
Carrier
avatar
Posted: 6 Sep 2004
20:28 GMT
Total Posts: 2486
What error and line your calc's reporting (if any)? We could help with logic and such but you need to be more specific about the problem you're facing. My 85 has a fried link port but if you email me the actual program file I can test it on my emulator and see if I can help you out.

---
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
Ray Kremer
Ultralisk
Posted: 6 Sep 2004
22:18 GMT
Total Posts: 310
When it errors and you hit GOTO, where does it go?

What's this:
Updates Misses
Jayko
Probe
Posted: 7 Sep 2004
10:30 GMT
Total Posts: 13
Answer to first question:
Whenever I start the program theres usually an undefined error...

Answer to second question:
My computer isn't IBM or Mac. but if I could somehow plug my calc into a HP. Please tell me...

Two answers to third question:
1:Usually :Goto D and I've tried making a :label D in several areas but I just found the program off the net...
2:The updates misses is something I forgot to erase all it does is tell me what I'm programming in...
zkostik
Carrier
avatar
Posted: 7 Sep 2004
10:46 GMT
Total Posts: 2486
HP is a PC (PC doesn't mean IBM anymore), in other words yes, you can plug the cable into your computer. The question was about the kind of cable you have. If its serial it would be black or gray and wide (few inches wide). If its USB, the connector is small and rectangualar (about diameter of a dime). You can see pictures of both cable types on our Visual FAQ page. See the FAQ link on the bottom navigation bar and then go to TI-83+ basics. Or just follow this path: http://www.calcgames.org/faqs/ti83p_basics/.

Well, it obviously gives you and Undefined because there is no Lbl D in the program. Its possible that you or the website you've found the prog on missed that line of code. You'll need to read/understand the program and figure out where that lable should logically go. If I have time this evening I may attempt to do that.

---
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
Jayko
Probe
Posted: 7 Sep 2004
10:59 GMT
Total Posts: 13
My calc is an 85 and my cable is a bit smaller then a headphones cable on both ends....):
Jayko
Probe
Posted: 7 Sep 2004
11:10 GMT
Total Posts: 13
Hello?
JcCorp
Probe
Posted: 7 Sep 2004
13:58 GMT
Total Posts:

Edit
just some advice, be patient. People won't want to help you if you expect instant and perfect responses.

And Z is right. Just play around with lables changing them to D until it works right.
Jayko
Probe
Posted: 8 Sep 2004
10:36 GMT
Total Posts: 13
I deleted the program, it was a waste of my time... Instead I made my own version thats working a lot better! Well I probably won't be in this disscusion anymore because I took care of my problem...





Portal | My Account | Register | Lost Password or Username | TOS | Disclaimer | Help | Site Search | File Archives Copyright © 2002-2019 CalcG.org