Character creation on gamebooks
adrao
05 Nov 2014, 09:01Dear all,
I am trying to implement a character creation system in a gamebook (where the player can set the values to certain attributes, like strength, etc). What would be the best way to go about doing this?
Thank you in advance!
I am trying to implement a character creation system in a gamebook (where the player can set the values to certain attributes, like strength, etc). What would be the best way to go about doing this?
Thank you in advance!
HegemonKhan
05 Nov 2014, 19:20if GameBooks doesn't have the 'start' Script under the 'game' Object (I can't remember if it does or doesn't), then use your first Page: set it to a script (or script+text), and add in your 'if' scripts and 'set a variable or attribute' scripts (see the 'character creation' in the quest wiki).

jaynabonne
05 Nov 2014, 22:52Attached is one way to do it. It's not the greatest, but it shows an approach in a raw form. (I hope I interpreted what you wanted to do from what you said - able to set attributes to values.)
The basic idea is to have a page that shows the current states of the desired variables. There are links to script-only pages that update the variables (either incrementing or decrementing) and then route back to the main stats page so the player can see the change. You would also want a link that takes you on to the rest of the game once the stats are set.
The basic idea is to have a page that shows the current states of the desired variables. There are links to script-only pages that update the variables (either incrementing or decrementing) and then route back to the main stats page so the player can see the change. You would also want a link that takes you on to the rest of the game once the stats are set.
adrao
06 Nov 2014, 07:06Dear Jay, HegemonKhan,
Thanks for the reply, and sorry for my very vague question. But yes, Jay you got exactly what I wanted to say!. I am not 100% sure how the coding on the pages works (did you code any of this yourself, or did you use functions already in quest?). Either way, much appreciated, I will be sure to use it!
Thanks for the reply, and sorry for my very vague question. But yes, Jay you got exactly what I wanted to say!. I am not 100% sure how the coding on the pages works (did you code any of this yourself, or did you use functions already in quest?). Either way, much appreciated, I will be sure to use it!