Several questions: creating lists, walkthrough editor?
The Egotist
15 Feb 2013, 04:50Hi there. I've created a couple of successful games using Quest, but now I'm looking to do something a little more advanced. I've run into some problems that I was hoping someone could clear up for me.
Please note that I am using the web version of Quest. I work from a Mac and can't install the offline program. So I can't use the code view (I think).
1) How do you create a list? I would like to give the player the option to choose from several "specializations" (basically classes) via a pop-up menu, but I can't figure out how to create a list.
2) Is there a way to use walkthroughs in the web version of Quest? If there is, I can't find it.
Those are the two most pressing issues right now. I may have more questions later. Thanks in advance!
Please note that I am using the web version of Quest. I work from a Mac and can't install the offline program. So I can't use the code view (I think).
1) How do you create a list? I would like to give the player the option to choose from several "specializations" (basically classes) via a pop-up menu, but I can't figure out how to create a list.
2) Is there a way to use walkthroughs in the web version of Quest? If there is, I can't find it.
Those are the two most pressing issues right now. I may have more questions later. Thanks in advance!
HegemonKhan
15 Feb 2013, 05:08quick code for making a list (stringlist):
split ("your_list_item_1;your_list_item_2;your_list_item_3;your_list_item_etc_etc" , ";")
---------
can you open up the game file with a note, note++, or word pad software with your mac?
then you can, just add in the code directly, but you'll have to get the code correct, of course (I can give you the code needed).
---------
I'm not sure what the web version has, but if it has the GUI~editor, then it's easy:
Game -> Setup -> Start Script -> Add A Script ->
Print A Message -> Print [MESSAGE] "What is your name?"
get input
-> Set Variable Or Attribute -> player.alias = result
-> show menu -> "What is your class?"
------------------> split ("warrior;cleric;mage;thief" , ";")
------------------> false
->-> Set Variable Or Attribute -> player.class = result
->-> show menu -> "What is your race?"
--------------------> split ("human;dwarf;elf" , ";")
--------------------> false
->->-> Set Variable Or Attribute -> player.race = result
->->-> show menu -> "What is your gender?"
-----------------------> split ("male;female" , ";")
-----------------------> false
->->->-> Set Variable Or Attribute -> player.gender = result
->->->-> Print A Message -> Print [EXPRESSION] "player.alias + " is a " " + player.gender + " " + player.race + " " + player.class +"." (which outputs, as an example if I selected these choices: HK is a male human warrior.)
split ("your_list_item_1;your_list_item_2;your_list_item_3;your_list_item_etc_etc" , ";")
---------
can you open up the game file with a note, note++, or word pad software with your mac?
then you can, just add in the code directly, but you'll have to get the code correct, of course (I can give you the code needed).
---------
I'm not sure what the web version has, but if it has the GUI~editor, then it's easy:
Game -> Setup -> Start Script -> Add A Script ->
Print A Message -> Print [MESSAGE] "What is your name?"
get input
-> Set Variable Or Attribute -> player.alias = result
-> show menu -> "What is your class?"
------------------> split ("warrior;cleric;mage;thief" , ";")
------------------> false
->-> Set Variable Or Attribute -> player.class = result
->-> show menu -> "What is your race?"
--------------------> split ("human;dwarf;elf" , ";")
--------------------> false
->->-> Set Variable Or Attribute -> player.race = result
->->-> show menu -> "What is your gender?"
-----------------------> split ("male;female" , ";")
-----------------------> false
->->->-> Set Variable Or Attribute -> player.gender = result
->->->-> Print A Message -> Print [EXPRESSION] "player.alias + " is a " " + player.gender + " " + player.race + " " + player.class +"." (which outputs, as an example if I selected these choices: HK is a male human warrior.)
The Egotist
15 Feb 2013, 06:03Thank you, that worked very well.
I still need to know whether it's possible to create a walkthrough with the web editor.
Also, I have another question/issue.
3) Can you use variables in text/a regular message? Or do you have to use expressions? I know you can use variables like this:
expression--> "Hello, " +player.alias+ "!"
But is there a way to do it in regular text, such as a room description?
If there isn't, can you use double quotes in an expression, or must you use single quotes only?
I still need to know whether it's possible to create a walkthrough with the web editor.
Also, I have another question/issue.
3) Can you use variables in text/a regular message? Or do you have to use expressions? I know you can use variables like this:
expression--> "Hello, " +player.alias+ "!"
But is there a way to do it in regular text, such as a room description?
If there isn't, can you use double quotes in an expression, or must you use single quotes only?
TriangleGames
15 Feb 2013, 06:39Using scripts for the room description etc., you can use an expression to set the variable text, and then print a message as an expression which simply says: text. I can link to the thread where it was explained to me if you need it clearer. 
P.S.: Walkthroughs are NOT currently available in the webeditor. Read more here:
http://quest5.net/wiki/WebEditor
I believe you will need to use a backslash to display quotes with an expression, as in:
"\"Leave her alone!\" shouted Tom."

P.S.: Walkthroughs are NOT currently available in the webeditor. Read more here:
http://quest5.net/wiki/WebEditor
I believe you will need to use a backslash to display quotes with an expression, as in:
"\"Leave her alone!\" shouted Tom."

Pertex
15 Feb 2013, 06:502. No, walkthroughs canot be used in the webedition
3. This wil possible in Q5.4 with the new textprocessor
3. This wil possible in Q5.4 with the new textprocessor
The Egotist
15 Feb 2013, 06:57Thanks to everyone who answered my questions!
I suppose I'll have to move production to my desktop PC, which will be a pain as it's rather convenient to be able to edit games from my laptop
But walkthroughs will be necessary to keep myself from going insane with frustration.
Any idea when a walkthrough editor will be implemented in the web version?
I suppose I'll have to move production to my desktop PC, which will be a pain as it's rather convenient to be able to edit games from my laptop

Any idea when a walkthrough editor will be implemented in the web version?
HegemonKhan
15 Feb 2013, 06:59there's a thread on here, about room descriptions with code in it, but if I remember right, it requires use of JS (javascript) to do it.
--------
when you use the GUI~editor, you must set it to: [EXPRESSION], if you want to have any sort of code (like the attributes) in it.
the [MESSAGE] is for when you just want to write in prose (with NO code), a message of yours.
in Code mode, there's no difference of [MESSAGE] and [EXPRESSION], there's only msg ("???") which can either do just prose or prose+code.
---------
to create quotes as prose, you do this:
\"
as the quatation mark is actually code itself, so to tell quest that you want the quatation mark as itself (prose), you need to put it as shown above.
however, when using "codes", you can't have the \" inside of the "code" ( " + code + " )
"code" = player.class
---------
" + player.class + " = works
\" " + player.class + " \" = works
' " + player.class + " ' = works
" + player.class + " " + player.race + " " + player.gender + " = works
--------
" " + player.class + " " = (when not next to another "code") = does NOT work
" \" + player.class + \" " = does NOT work
" ' + player.class + ' " = does NOT work
----------
see this thread, for more detail of correct syntax:
viewtopic.php?f=10&t=3460
--------
when you use the GUI~editor, you must set it to: [EXPRESSION], if you want to have any sort of code (like the attributes) in it.
the [MESSAGE] is for when you just want to write in prose (with NO code), a message of yours.
in Code mode, there's no difference of [MESSAGE] and [EXPRESSION], there's only msg ("???") which can either do just prose or prose+code.
---------
to create quotes as prose, you do this:
\"
as the quatation mark is actually code itself, so to tell quest that you want the quatation mark as itself (prose), you need to put it as shown above.
however, when using "codes", you can't have the \" inside of the "code" ( " + code + " )
"code" = player.class
---------
" + player.class + " = works
\" " + player.class + " \" = works
' " + player.class + " ' = works
" + player.class + " " + player.race + " " + player.gender + " = works
--------
" " + player.class + " " = (when not next to another "code") = does NOT work
" \" + player.class + \" " = does NOT work
" ' + player.class + ' " = does NOT work
----------
see this thread, for more detail of correct syntax:
viewtopic.php?f=10&t=3460
The Egotist
15 Feb 2013, 07:01Oh, and one last question: can I download a game I've started making in the web editor so that I can open it in the desktop version?

Pertex
15 Feb 2013, 08:29The Egotist wrote:
Any idea when a walkthrough editor will be implemented in the web version?
Q5.5 --> http://quest.codeplex.com/workitem/1013
The Egotist wrote:Oh, and one last question: can I download a game I've started making in the web editor so that I can open it in the desktop version?
No, but you can write an email to Alex. I am sure he will send you your game file