More fun
Want to support CHYOA?
Disable your Ad Blocker! Thanks :)

Chapter 2 by dingsdongs dingsdongs

What's next?

Begin Character Creation

Character Creation Screen

You can spent 5 character creation points freely in the attributes Strength, Intelligence and Charisma.

You have {if Character Creation Points = 5}5{elseif Character Creation Points = 4}4{elseif Character Creation Points = 3}3{elseif Character Creation Points = 2}2{elseif Character Creation Points = 1}1{elseif Character Creation Points = 0}0{else}For this to work, it is mandatory to start the Game Mode on the right tab under "Score".{endif} points remaining to spent as you wish.

Your current values are:
Strength: {if Strength = 6}6{elseif Strength = 5}5{elseif Strength = 4}4{elseif Strength = 3}3{elseif Strength = 2}2{elseif Strength = 1}1{else}For this to work, it is mandatory to start the Game Mode on the right tab under "Score".{endif}
Intelligence: {if Intelligence = 6}6{elseif Intelligence = 5}5{elseif Intelligence = 4}4{elseif Intelligence = 3}3{elseif Intelligence = 2}2{elseif Intelligence = 1}1{else}For this to work, it is mandatory to start the Game Mode on the right tab under "Score".{endif}
Charisma: {if Charisma = 6}6{elseif Charisma = 5}5{elseif Charisma = 4}4{elseif Charisma = 3}3{elseif Charisma = 2}2{elseif Charisma = 1}1{else}For this to work, it is mandatory to start the Game Mode on the right tab under "Score".}{endif}

{if Character Creation Points = 0}You can now start the story!{endif}


Explanation

  • Note: For more instructions check the chapter "Add +1 Strength"
  • Note: I am not setting any variables or conditions in this chapter "Begin Character Creation" itself. All the work is done before or after.
  • Note: You can use if-clauses to display some text according to the value of a variable. Sadly you cannot simply display the value itself at this time. A small workaround like seen in the source below is always needed.
  • Note: More info on the if clauses, check this guide from gene.sis https://chyoa.com/chapter/Conditional-Branches---If-Statements.256046

  • Note: The "source of the chapters" as copyable text can be viewed on the forum
  • Note: It is written in markdown format. To use it, you would need to disable the Rich Text Editor in your account settings.
  • The "source code" for this chapter as image:

What's next?

Want to support CHYOA?
Disable your Ad Blocker! Thanks :)