**Fighting RPGs** are games in which the plot is advanced by fighting. Fighting RPGs require fairly intermediate programming to create, especially if you use a real-time fighting system as opposed to a turn based (explained below). Before you create a Fighting RPG, make sure you are confident with all the commands listed below

## Program Edit

**Needed Commands:** randInt(, →, Output(, If/Then/Else, Logic Commands

* For Turn Based:* Menu(

*getKey, Line(, While*

**For Real Time Based:****Optional:** DelVar

## Example Edit

Heres a way to move a star around on the screen:

:4→A :8→B :Delvar K :Output(A,B,"* :While 1 :GetKey→K :If K=25 and A≠1 :A-1→A :If K=34 and A≠8 :A+1→A :If K=24 and B≠1 :B-1→B :If K=26 and B≠16 :B+1→B :ClrHome :Output(A,B,"* :End

Here's a more efficient way to do the same thing:

:ClrHome :4→A :8→B :While 1 :Output(A,B,"* :Repeat Ans :GetKey→K :End :Output(A,B,"_ //1 space; Can be replaced with Clrhome to save space. :A+(K=34 and A<8)-(K=25 and A>1→A :B+(K=26 and B<16)-(K=24 and B>1→B :End

! *This article is a stub. Please help the TI-BASIC Wiki by expanding it*