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

Chapter 2 by fifal fifal

Where to Start?

[Contributor Page] If you can see this, then you haven't selected "Start Game"


If you have not already played the game, turn back now.

If you are trying to figure out exactly how this game works, then you are in for a doozy of a page.


There are 3 types of variables that CHYOA has, integer, boolean, and percentage. Booleans are essentially useless, and percentages are just integers with extra logic. This means that integers drive the whole story; there are no strings or enums. Each chapter has an optional list of conditions that must all be true in order for the chapter to be visible, it can also modify the values of those numbers upon opening the chapter. These three tools drive everything this story has to offer.

Even though CHYOA allows for addition and subtraction of integer variables, it's often easiest to set the value to an explicit number. The most common pattern is {Chapter | Conditions [Day < 100] AND [Stamina > 15%] AND [XXX Questline = 1] | Score Changes [Stamina - 5%] [Day + 1] [XXX Questline = 2] }

The {\if Condition ID == 0}{else@}{endif} syntax can also be useful, if the same chapter is meant to be looped over multiple times. More often than not though, it's easier to create more chapters than try to reuse the same one.

Important Variables

  • {Day} - Root events should have a condition for Day > 100, which results in a Age increase
  • {Money} - Limited, used in shops
  • {Loop ID} - Sets the home loop such as "Main Guild Hall"
  • {Might}, {Fortitude}, {Charisma} - Often rewards for finishing a questline, some chapters have secret endings if these stats are high enough. Use these to expose new content, not block it.
  • {Ri Potential} - Main plot progression point
  • {Age} - Increases after a set number of days
  • {XXX ID} - For things like Hair Style or Height, require a special tool to generate the switch string.
  • {XXX Relationship} - Essentially this is how badly the person wants to fuck Maia
  • {XXX Level} - Abilities learned, 1 is always basic knowledge, but each ability can have it's own levels, which don't necessarily have to be strictly increasing.

Loop Nodes

  • 0 : Guild Hall
  • 1 : Conservatory

Style Rules

  1. Lesbian focused, exceptions are allowed
  2. Link Nodes do not contain text (this is a CHYOA rule, but it's really easy to forget)
  3. Nodes that are only accessible from links should have impossible conditions. Always use [Always False: True] for this check.
  4. Some Loop Nodes (Variable is {Loop ID}) are shared between schools, some are not
  5. Embrace single decision chapters. Do not put prerequisite checks as the inherit the ones from their parent
  6. New Variables can be added, but be considerate, limit names to only the required words, Capitalize the first letter of each word, and put spaces between each word
  7. You can not add a new Loop Node
  8. Always use 1. for ordered lists, this makes it so the lists can never be misnumbered when adding a new list item from the top

Making a new Event

  • Add to the {Day} variable if the event takes time
  • Subtract from {Stamina} if the event takes energy, ensure {Stamina} is high enough with a conditional check
  • Add conditional checks for {Might}, {Fortitude}, and/or {Charisma}
  • Add conditional checks for {Ri Potential}
  • Subtract from or Add to from {Money} if the event costs or earns money, ensure {Money} is high enough with a conditional check
  • Create a new boolean variable called {<event name> Completed} or a integer variable called {<event name> Stage}
  • Add a conditional check for your new variable name or stage, so that the event cannot be repeated

Parameters

First Name : Maia
Last Name : Eidola
Hometown : The Brightgates
(Deprecated) Basic Description : {Basic Description}

Rendering Examples

astrisk
underscore
double asterisk
""quotes""
four underscores
two tildes
||spoiler||


Table below

Name Description
Fireball Blows shit up, like a lot

OL

  1. first
  2. Second
  3. third

UL

  • Order
  • matters

Block Quote?

Don't Use Hypens for HRs


They


Do some weird header shit


Horizontal Rules

onebang

twobangs

*Three Bangs

Four Bangs

A Fifth Bang?
sixbangs and some astrisks

What's next?

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