Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / inkey or inword?

Author
Message
GZMGames Admin
19
Years of Service
User Offline
Joined: 15th Feb 2005
Location: vermont
Posted: 31st Mar 2005 07:00
i know theres an inkey were you can ONLY put in one key but is there a command for the person to type in a word? example:

im writing a cheat, it works fine but it only works if theres only one key pressed, i would like to know if theres a way to have it like a word with out it show what you typeing heres what i have


now im trying to turn the inkey command into like an inword typething but thats not a command if someone types in the c they can't see it but a confirmation message comes up trust it works i just need a way for someone to type in a word instead of a key.

Games made with passion
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 31st Mar 2005 15:52 Edited at: 31st Mar 2005 15:57
This is a very basic 2 second modification of your code:



It will now only 'goto cheatinput' when cheat is typed in.
It is far from complete because mistypes can't be corrected and certainly not the ideal way to do it because the program will not run concurrently with the cheat request but it works to a degree.

I could offer more help later if you can't figure it out.

GZMGames Admin
19
Years of Service
User Offline
Joined: 15th Feb 2005
Location: vermont
Posted: 1st Apr 2005 01:30
ill try that but i can't now cause im at school

Games made with passion
GZMGames Admin
19
Years of Service
User Offline
Joined: 15th Feb 2005
Location: vermont
Posted: 1st Apr 2005 08:09
it doesnt really work, i try to make two cheats in other words repeat the code you posted i repeat it and it goes the cheat above it heres what i did
any suggestions on what i should do?

Games made with passion
code master
20
Years of Service
User Offline
Joined: 4th Dec 2003
Location: Illinois
Posted: 1st Apr 2005 08:44
yea, there is.

input "stuff here",varible$

if varible$="what u want them to type" then do whatever

dbc 1.13 non enhanced
www.sgs.dbspot.com (coming soon)
GZMGames Admin
19
Years of Service
User Offline
Joined: 15th Feb 2005
Location: vermont
Posted: 1st Apr 2005 08:56
im not really sure what you just said but could you try to do like a code snippet on where that goes?

Games made with passion
code master
20
Years of Service
User Offline
Joined: 4th Dec 2003
Location: Illinois
Posted: 1st Apr 2005 09:03 Edited at: 1st Apr 2005 09:06
ok, like this:

input "quit?",varible$

if varible$="y" then end

the param in "" is what you want to say(like print) and the second is the varible that their awnser is stored in.

EDIT: the source link on the rigth hand is wrong code.
below is the correct source



dbc 1.13 non enhanced
www.sgs.dbspot.com (coming soon)

Login to post a reply

Server time is: 2024-09-23 17:31:25
Your offset time is: 2024-09-23 17:31:25