0 Members and 2 Guests are viewing this topic.
:Lbl M:"for main menu:Menu("Options","Rest",1,"Fight"':Lbl 1:...Stuff:Goto M:Lbl 2:Menu("Fight","Use Sword",3,"Use Bow",4,"Back",M:Lbl 3:...stuff:Goto M:Lbl 4:...stuff:Goto M
"Set up variables{0,4,5->L12->Y"Y will be used for the cursor0->G"G will be for key pressesOutput(1,1,"INVENTORYOutput(2,2,"PotionsOutput(3,2,"ApplesOutput(4,2,"FeathersOutput(2,10,L1(1Output(3,10,L1(2Output(4,10,L1(3While G=/=23"23 is the code for [mode]getKey->GIf Ans =/=0ThenOutput(Y,1,"_""Where _ is spaceY+(G=34)(Y=/=4)-(G=25)(Y=/=2)->YOutput(Y,1,">"Then for jumping to other codeIf (G=105) and (Y=2)Goto PO" jump to potion code or code potions hereIf (G=105) and (Y=3)Goto AP"apple code jump or here"repeat for Feathers"EndEnd
Okay, here is the code for a simple menu:Code: [Select]"Set up variables{0,4,5->L12->Y"Y will be used for the cursor0->G"G will be for key pressesOutput(1,1,"INVENTORYOutput(2,2,"PotionsOutput(3,2,"ApplesOutput(4,2,"FeathersOutput(2,10,L1(1Output(3,10,L1(2Output(4,10,L1(3While G=/=23"23 is the code for [mode]getKey->GIf Ans =/=0ThenOutput(Y,1,"_""Where _ is spaceY+(G=34)(Y=/=4)-(G=25)(Y=/=2)->YOutput(Y,1,">"Then for jumping to other codeIf (G=105) and (Y=2)Goto PO" jump to potion code or code potions hereIf (G=105) and (Y=3)Goto AP"apple code jump or here"repeat for Feathers"EndEndTry that, should work okayTell me if you have questions, or if it doesn't work
output allows you to display something at a certain pointfor example::output(1,1,"hi"will make it appear at point 1,1 on the screen, or the upper left corner!AND DON'T DOUBLE POST!and read this http://www.ticalc.org/programming/columns/83plus-bas/cherny/
Quote from: saintrunner on November 22, 2011, 09:53:37 pmoutput allows you to display something at a certain pointfor example::output(1,1,"hi"will make it appear at point 1,1 on the screen, or the upper left corner!AND DON'T DOUBLE POST!and read this http://www.ticalc.org/programming/columns/83plus-bas/cherny/Yeah i looked there but It didn't help that much also another person said to double post so........
4: The only time double-posting is allowed (posting two messages in a row in the same topic) is either if there has been 6 hours since your last post, 3 hours if your thread has been bumped out of the New Posts page, 1 hour if it's a project update or immediately if you need to upload more than 10 file attachments at once. Otherwise, update the last post using the "EDIT" button. It will be marked as unread for all members (altough it won't bump the thread).