1.Store the full health into a variable-
health$="(the full health)"
2.Set the cursor to where it should print the full health-
Set cursor 10,20
3.Show the full health-
Print "Health = ",health$,"."
4.Wait for any key to be pressed-
suspend for key
5.You encounter an enemy! Round 1 of the text based battle sequence-
Print "~Round 1~"
6.Your animal gets attacked-
Print "Your animal got attacked!"
7.Wait for any key to be pressed-
suspend for key
8.Clear the screen-
CLS
9.Set the cursor to where it should print the new decreased health-
Set cursor 10,20
10.Set the new decreased health-
health$="(what ever number the new health is)"
11.Then show the new decreased health-
Print "Health = ",health$,"."
12.Wait for any key to be pressed-
suspend for key
Here is an example:
health$="10"
Set cursor 10,20
Print "Health = ",health$,"."
suspend for key
Print "You've encountered an enemy! Time to Fight!"
Print "~Round 1~"
wait 3000
Print "Your animal attacks the enemy..."
wait 3000
Print "Your animal's attack misses!"
wait 3000
Print "The enemy attacks your animal..."
Wait 3000
Print "Hit! 9 Health Points lost! That's a strong enemy"
wait 2000
cls
health$="1"
Set cursor 10,20
Print "Health = ",health$,"."
suspend for key
If this is an idea of what you are looking for, I hope it helps.
~GreenFox
Enjoy Life while your still alive.
Enjoy a recees anytime!