プレイ日記
Da Waddles DarthWaddles
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).)
1そうだね
プレイ済み
返信[1]
親投稿
Aaron Krondelo
Just use input. So put: INPUT "Choose an option, A, B, or C";ANS$ IF ANS$=="A" THEN GOTO @OPTIONA
0そうだね
プレイ済み
返信[2]
親投稿
こうやま kouyama1435
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!
0そうだね
未プレイ
返信[3]
親投稿
Oscar PwnageBlock
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)
0そうだね
プレイ済み
返信[4]
親投稿
Oscar PwnageBlock
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.
0そうだね
プレイ済み
返信[5]
親投稿
Oscar PwnageBlock
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.
0そうだね
プレイ済み
返信[6]
親投稿
Oscar PwnageBlock
You can find every constant you can use in the help entry for BUTTON. The ones you probably want are #A, #B, #X and #Y.
0そうだね
プレイ済み