I'm working on a game called "Agartha Legends" based off a concept and tiktok/instagram right wing meme called "Agartha." Can anyone review my code and possibly see what's causing the syntax error?


Code:
0→S
0→D
0→C
0→T
0→P1
0→P2
0→K
""→Str0

Repeat D=3

ClrHome
randInt(1,20)→C
randInt(0,1)→T

Disp "NEW MAIL"
Disp "FROM: ASHTAR"
Disp " "
Pause

ClrHome
Disp "OPENED MAIL"
Disp "----------------"

If C=1 Then "Alex"→Str0
If C=2 Then "Brooke"→Str0
If C=3 Then "Benjamin"→Str0
If C=4 Then "Murphy"→Str0
If C=5 Then "Kidus"→Str0
If C=6 Then "Barbara"→Str0
If C=7 Then "Allison"→Str0
If C=8 Then "Halle"→Str0
If C=9 Then "John"→Str0
If C=10 Then "Peter"→Str0
If C=11 Then "Mark"→Str0
If C=12 Then "Matthew"→Str0
If C=13 Then "Noah"→Str0
If C=14 Then "T Miller"→Str0
If C=15 Then "Haley"→Str0
If C=16 Then "Reagan"→Str0
If C=17 Then "Reese"→Str0
If C=18 Then "Steggy"→Str0
If C=19 Then "Kaleb"→Str0
If C=20 Then "Sarah"→Str0

Disp Str0

randInt(1,13)→P1
randInt(1,13)→P2

If T=0 Then
If P1=1 Then "Strong leader"→Str0
If P1=2 Then "High focus"→Str0
If P1=3 Then "Physically fit"→Str0
If P1=4 Then "Strategic"→Str0
If P1=5 Then "Calm under stress"→Str0
If P1=6 Then "Innovative"→Str0
If P1=7 Then "Team oriented"→Str0
If P1=8 Then "Disciplined"→Str0
If P1=9 Then "Quick learner"→Str0
If P1=10 Then "Resilient"→Str0
If P1=11 Then "Efficient"→Str0
If P1=12 Then "Adaptable"→Str0
If P1=13 Then "Reliable"→Str0
Disp Str0

If P2=1 Then "Strong leader"→Str0
If P2=2 Then "High focus"→Str0
If P2=3 Then "Physically fit"→Str0
If P2=4 Then "Strategic"→Str0
If P2=5 Then "Calm under stress"→Str0
If P2=6 Then "Innovative"→Str0
If P2=7 Then "Team oriented"→Str0
If P2=8 Then "Disciplined"→Str0
If P2=9 Then "Quick learner"→Str0
If P2=10 Then "Resilient"→Str0
If P2=11 Then "Efficient"→Str0
If P2=12 Then "Adaptable"→Str0
If P2=13 Then "Reliable"→Str0
Disp Str0
End

If T≠0 Then
If P1=1 Then "Unreliable"→Str0
If P1=2 Then "Low focus"→Str0
If P1=3 Then "Avoids teamwork"→Str0
If P1=4 Then "Easily stressed"→Str0
If P1=5 Then "Poor judgment"→Str0
If P1=6 Then "Unmotivated"→Str0
If P1=7 Then "Disorganized"→Str0
If P1=8 Then "Slow learner"→Str0
If P1=9 Then "Impulsive"→Str0
If P1=10 Then "Inconsistent"→Str0
If P1=11 Then "Lacks discipline"→Str0
If P1=12 Then "Avoids resp"→Str0
If P1=13 Then "Neg mindset"→Str0
Disp Str0

If P2=1 Then "Unreliable"→Str0
If P2=2 Then "Low focus"→Str0
If P2=3 Then "Avoids teamwork"→Str0
If P2=4 Then "Easily stressed"→Str0
If P2=5 Then "Poor judgment"→Str0
If P2=6 Then "Unmotivated"→Str0
If P2=7 Then "Disorganized"→Str0
If P2=8 Then "Slow learner"→Str0
If P2=9 Then "Impulsive"→Str0
If P2=10 Then "Inconsistent"→Str0
If P2=11 Then "Lacks discipline"→Str0
If P2=12 Then "Avoids resp"→Str0
If P2=13 Then "Neg mindset"→Str0
Disp Str0
End

Disp " "
Disp "1=ACCEPT"
Disp "2=REJECT"
Input "CHOICE:",K

If K=1 Then
If T=0 Then S+200→S
Else 3→D
End

If K=2 Then
If T=1 Then S+200→S
Else 3→D
End

If D=3 Then
ClrHome
Disp "PERMANENTLY BANNED"
Disp "FROM AGARTHA"
Disp " "
Disp "SCORE:"
Disp S
End

End


The inputs are really corny because I used AI to give me inputs
It's because you are typing "If condition Then instruction", all "Then" statements require a corresponding "End" statement, try removing all of the Then statements from the long line of "If P2 = n" statements.
Also, variables have to be one letter, so P2 and P1 are not valid statements.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement