user picks their players name

For help with creating games using Quest

Moderators: Pertex, Alex, sgreig, Cryophile

user picks their players name

Postby Volkov » Sat Aug 11, 2012 4:21 am

I tried searching the forums but many of my keywords weren't allowed. So I apologize ahead of time if this is a common question.

I was wonder if either adventure or game book mode allowed the the player to pick their name and then have it referenced through out the story, along with the gender of their chosen character.
This way the immersion for the story doesn't cause an over production of pages with very little differences.
------

I had another question about exporting a story to html, in order to host it on my own hosting service but I saw a post about that still being worked on. So I await that with bated breath. :D


By the way I love the fact you can change the page names late into a story and not have to go back and fix its referencing one by one. Really nice touch. 8)

I don't have too much of my story done but when writers block hits I tend to just try to work on the presentation of the story.
My knowledge of code is limited to a single college course on Dreamweaver and very long drawn out class on flash animations. (We learned more about the professor's boats and motorcycles than action script...)
Volkov
 
Posts: 1
Joined: Sat Aug 11, 2012 4:04 am
Location: NY

Re: user picks their players name

Postby sgreig » Sat Aug 11, 2012 9:02 am

In game mode you can do that... in gamebook mode not so much.
sgreig
 
Posts: 391
Joined: Wed Feb 15, 2012 10:16 pm
Location: Winnipeg, MB, Canada

Re: user picks their players name

Postby sonic102 » Sun Aug 12, 2012 2:19 am

In TA mode you can do this:
Print "Please enter your name: "
Set variable [name] = [player input]
Set variable [listgender] = [new string list]
Add to list [listgender] [text] [male]
(same thing for female)

CHECKING THE GENDER

If [expression] [result] = male
(script for male)
(same thing for female)

CHECKING THE NAME

Print [expression] ["So your name is " + name + "? Good name"]

Nota bene: It's better to make name an attirbute than a variable.

In Gamebook mode:
(You can't GET A NAME, CHECK A NAME, or CHECK A GENDER)

Page 1:

What is your gender?

Male(link to page 2)
Female(link to page 3)
sonic102
 
Posts: 186
Joined: Mon Apr 23, 2012 10:55 am

Re: user picks their players name

Postby sgreig » Sun Aug 12, 2012 5:04 am

sonic102 wrote:In TA mode you can do this:
Print "Please enter your name: "
Set variable [name] = [player input]
Set variable [listgender] = [new string list]
Add to list [listgender] [text] [male]
(same thing for female)


This will work, but just a little FYI, the old GetInput function has been deprecated because it doesn't work with JavaScript.

sonic102 wrote:Nota bene: It's better to make name an attirbute than a variable.


If you plan on using the name throughout the game, making it an attribute of the game object is the only option, as variables are local in Quest.

sonic102 wrote:In Gamebook mode:
(You can't GET A NAME, CHECK A NAME, or CHECK A GENDER)


You're 1/3 right here. You CAN go into the code editor in a game book and add scripts and stuff by hand as was pointed out to me by Alex. The only thing you CAN'T do is get player input because the game book mode removes the parser.
sgreig
 
Posts: 391
Joined: Wed Feb 15, 2012 10:16 pm
Location: Winnipeg, MB, Canada


Return to Quest Forum

Who is online

Users browsing this forum: Bing [Bot] and 1 guest