user picks their players name

Volkov
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...)

sgreig
In game mode you can do that... in gamebook mode not so much.

sonic102
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)

sgreig
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.

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

Support

Forums