as you can see, i'm making a text adventure, but i need a way to make choices i need help (Y=option 1 A=option 2, X=option 3 (sometimes) B=option 4 (sometimes).)
I made text adventure,too.(But porting and Japanese only)
Download by key [Q34JP38D] and run "KYMADV".Though all Japanese,this program has selecting function with 2 or 3 buttons.Do reverseengineering,copy and add to your text adventure!
You can use the BUTTON function. This will allow you to condition your code depending on which button the user presses. You can assign BUTTON to a variable for more convenient usage. Like this...
B=BUTTON(2)
You can specify the way you want to receive presses by sending a parameter to button. If I recall correctly, they are...
0 - for held down buttons.
1 - for pressed buttons with repeat.
2 - for pressed buttons without repeat.
3 - for buttons that were just released.
In this case BUTTON(2) will return the buttons that were just pressed.
There is also a parameter for terminal ID, but that's only used when doing multi-console local wireless multiplayer.
To know which buttons are being pressed using BUTTON, you can use the variable you assigned it to (in this case it's B), along with constants and logic gates.
For example...
B=BUTTON(2)
IF B AND #A THEN 'DO SMTH
...will do something if the A button was pressed.