you want something like
IF inkey$() = "1" then ____(etc)____
the inkey$() command returns the current key pressed, as a string (as text), which is why you need the speechmarks.
its all in the help somewhere if you bothered to look
There is a command also to get the input like a command inputline
to do this, it works slightly differently
input "question? "; out
where out is the name of your output, and the text in the speechmarks is the command line/question that will appear.
if you wanted something for the first method, i would suggest
print "1. Attack"
print "2. Ability"
print "3. Defend"
print "4. Whatever"
do
if inkey$() = "1"
done = inkey$()
goto outsideloop
endif
if inkey$() = "2"
endif
if inkey$() = "3"
endif
rem ... and more ... (you get the point)
loop
outsideloop:
if done = 1 then print "you have attacked"
edit:
yeh ok so he got there first! but you only really need to use keystate if you expect the player to be pressing more than one key at a time
www.AoFP.co.uk