For getting the user input and handling it...you would do something like this.
`Rem Input asks for user input, 'Variable$' can be named anything you wish
Input "What is your decision?>",Variable$
`Rem for a condition of a string variable
If Variable$ = "Attack"
Do Stuff Here
endif
There is one slight problem...using that, they have to put exactly "Attack" it can't be "attack" all the caps have to be right.
There may be a way to capitalize the lefthand letter of the word, i will try to figure it out and post the answer when i find it...unless in the meantime someone else knows, then feel free to post it.
Edit:
Ok, here is a horrible (but will still work) example of how to do as I explained above.
put this code and change it to your needs wherever you want it to happen.
input "hey ",hey$
Test = len(hey$) - 1
print Upper$(left$(hey$,1));
print Lower$(right$(hey$,Test))
Edit2:To find the scancode(key number) for a key, use the following code.
do
cls
print scancode()
loop
you wouldnt do
if(30 *(which is the scancode for a)*) is pressed
You would do
if keystate(30)>0
repeat
code here
until keystate(30)=0
endif
Your number gets saved using variables...here is a link to tdk's tutorials on darkbasic pro...read them and you will learn a ton. I refer back to his tutorials a ton still.
http://forum.thegamecreators.com/?m=forum_view&t=99497&b=10
do you love video games a lot ¿¿¿ then comeon down too game zone252 @ http://www.freewebs.com/gamezone252/