Number input?

kingmorgoth99
Hi every1 i really nead to know :?: if theres anway of putting a player input thing in you see in my game i'm making i need someone to dial a number and i want them to have to type the number in to dial and if its not the right number then they won't be able to use the phone im not sure if this is poss but i hope someone out there will now how
Thanks in advance guys. :D

Cryophile
You use the "enter" command. Example from the ASL Reference:

msg <Enter your name:>
enter <playername>
msg <Hello there #playername#! How nice of you to be here.>

exec <command


In QDK, when you have to pick a script command, click Other and choose the proper one.

Cryophile
Also here's an example for everything you were looking for:

msg <Enter Phone Number>
enter <fone>
if (#fone#= 1234567) then {
addstuffhere if fone is right
}
else {
addstuffhere if fone is wrong
}

if the user puts a - in the number, you'll have to use $left and $right or something to remove it.

kingmorgoth99
Thank um well sorry to seem kind of dum but how do i put this into the game? do i have to use the misc asl option on the script menu or something?
sorry to be a pain in the backside

Anonymous
No problem man. You're using QDK so it's going to be easier. I assume you're either going to add this as a script command (so you type yourcommand in game to activate a script) or you're going to add this during another script or even the description of the room.
If you add it as a script command, you either click last tab in the game properties or room windows. Then click add and enter something like "dial #number#". You will want to use an if statement to check to see if there is a phone or whatever you wish in the room (just an idea). Then add a conditional (if statement) and click the top button on the right side of the new window. Put #number# or #whateveryourvaris# in the space and keep it as "equals to" and write the number you want them to dial. Then click ok and add stuff to the then and else.
If you do it in another script you do exactly what I said before (xcept the first 2 sentences) Hope this helps and READ YOUR MANUAL! You'll need that a lot! So does everyone else here.[/i]

Cryophile
Aaarrgggghhh. I hate these school computers. I logged off my computer and forgot to log back in to the forums. The previous post was mine.

GameBoy
S1aY3R was kinda right in his code.

basically you want to make a command called 'dial #number#'

THEN use the conditionals

paul_one
God I wish I was able to make a little video thingy... But I can't...

If I can be bothered tonight (because I wanna get to sleep pretty soon) then I'll create a little test thingy for you to have a look at King...

GameBoy
you mean a flash movie that shows you what to do in QDK? lol, that would be awesome. there could be a tutorial section on the site for QDK, and it shows flash movies showing the cursor and stuff. that would be incredible

kingmorgoth99
Thanks guys, a video demo sounds wicked, by the way have you guys got any games out on the site and what are they cos i should be bringing 1 out soon (bout a week) and i want to see how good mine is comared to yours s1ay3r i no wat u mean bout school puters they really are cruddy ain't they, but hey at least i can go on em every day (cept weekend) and thanks agian guys

GameBoy
well, mine is Ebersmile DEMO. I made this AGES AND AGES ago, way before you were born my son (j/k). lol, anyway. there isnt really anything to it as i was hoping to get it online. The first maps you see are the basic structure of the game, and i was hoping to be able to get staff members to help build it IN-GAME. But, quest isnt that advanced, YET. I'll have to wait before i start making anything complex.

kingmorgoth99
cool hey ste what is it with you and lol's?
MAN school seriously sucks, i got *$#^#@%#$ed for goin on quest at lunchtime my I.T teacher banned me from comp room for "inapropriate use of time!" god i hate her. little dwarf idiot (she's smaller than me and i ain't exactly tall) sorry guys i had to tell someone cos it was real peein me off.

Cryophile
BTW, I was completely right with the code. I might not have detailed it right since I'm at school and remembering from memory. I'm guessing my game may be too large before I finish (over 1 mb eventually) but I'll try and keep it down. It may take a couple years to completely finish.
I was wondering if there's a rule against adding to your games after the competition. I could email Stephen I guess, and ask...

Cryophile
Actually, Ste, you could very easily add/modify a lot in-game. Using create object/room, changing the alias, description, etc., also any other modifying commands. You could not change a lot of the stuff, like the procedures and functions (very useful), which sucks.

GameBoy
well i have to say, im not complaining, because i've seen how Quest has progressed and im very impressed (i could rap to this! lol). Yes, i do "lol" alot, but im such a happy person what can i say.

By the way, please do NOT use maps from the Ebersmile DEMO, as i've used them in Lords of Ebersmile.

kingmorgoth99
um well i'm thinkin of makin a new game and it's kinda gona be like assassin i'm not sure weather i should make it cos there's loads of that kind of game around plus i'm working on hacker (slowly, fitting it in with homework,eating sleeping, goin out n stuff i don't get to do much but it's comin along)what do ya think

Cryophile
Assassin??? What's that?

kingmorgoth99
assassins ya know the quest game in the downloads bit kinda gangster type game very cool couple of bugd though suprised you ain't heard of it. oh yeah it's gonna be called HITMAN:Assassin for hire or HITMAN:rise of the O.A.H or HITMAN:domination of the O.A.H (oh yeah oah stands for organisation of assassins for hire)

Cryophile
I've played very few of the Quest games in the archive, due to their poor quality. My favorites were Magicsword P1 and Koww the Magician.

GameBoy
when ebersmile is up i'm sure you'll love it. very cool features so far, like having the ability to teleport to any room with one script, and having the ability to teleport to a player wherever they are.

we have a very simple battle system so far lol, but none the less its fun. i also have PK squares and non PK squares (PK squares show up in red), and its fun to chase people on.

Cryophile
Sounds awesome. Can you teleport to any room, or only one you've been to? Or only specific rooms? I have over 10 pages of notes for my game, but unfortunately I can't detail them or I'm disqualified from the competition :x oh well...
I can say that a lot of the enemies are from AD&D and a few spells are similar. Only similar though.

This topic is now closed. Topics are closed after 14 days of inactivity.

Support

Forums