souvik1997 wrote:
What are A and B used for?
A=your health B=opponents health
adamac15 wrote:
souvik1997 wrote:
What are A and B used for?
A=your health B=opponents health

Alright, then yes, your previous code will work. However, if you have a lot of battles, you should put all your battles into to a loop and use _player's code to save space. Smile
well, there are 20 battles.
Then you should put the battles in a loop, it will conserve space and you won't have to type as much.
how do i put them in a loop?
_player1537 wrote:
Or you could be sneaky and have it setup like this (btw, I don't get what you meant just now). Where A is your health:
Code:
pi->A
While Not(LOST
If A=pi
1000->A
INITIATE BATTLE SEQUENCE!
End


You can put the battles like this.
what about all the other code that goes with the battle?
That goes in "INITIATE BATTLE SEQUENCE".
i dont understand
Put all of your battle code in "INITIATE BATTLE SEQUENCE".
how?
Re-type it, or do 2nd-Rcl-PRGM-EXEC-<program name where battle code is>.
so i should re-type the code in a separate program, then do that?
Where the text "Initiate Battle sequence" is, put all of your battle code. Think of it as a section of code.

For example:


Code:
pi->A
While Not(LOST
If A=pi
1000->A
RecallPic Pic1
1+1
If Ans:Then
...
End
End
adamac15 wrote:
so i should re-type the code in a separate program, then do that?

You can do that.
is there a faster way?
Use Sourcecoder and Copy/paste.
Qwerty.55 wrote:
Use Sourcecoder and Copy/paste.

This, or you can Rcl the entire program and delete the lines you don't need. Smile
so type out the first battle, then make a 2nd one and rcl?
No, you just need one battle in the loop, the loop will repeat it until you lose a battle.
  
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
» Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
» View previous topic :: View next topic  
Page 3 of 7
» 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