1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| "Set up variables {0,4,5->L1 2->Y "Y will be used for the cursor 0->G "G will be for key presses Output(1,1,"INVENTORY Output(2,2,"Potions Output(3,2,"Apples Output(4,2,"Feathers Output(2,10,L1(1 Output(3,10,L1(2 Output(4,10,L1(3 While G=/=23 "23 is the code for [mode] getKey->G If Ans =/=0 Then Output(Y,1,"_" "Where _ is space Y+(G=34)(Y=/=4)-(G=25)(Y=/=2)->Y Output(Y,1,"> "Then for jumping to other code If (G=105) and (Y=2) Goto PO " jump to potion code or code potions here If (G=105) and (Y=3) Goto AP "apple code jump or here "repeat for Feathers" End End |