Work Life (Visual Novel / Game)
|
various weekend event functions More...
Functions | |
void | handle_event () |
maybe handle a weekend event | |
void | playtest_event () |
playtest menu for each story | |
void | playtest_emergency () |
playtest menu for each emergency | |
vnlib::SayOptions | diable_block_options () |
function to create non-blocking, skippable options | |
void | emergency_response () |
pass control to the main character to decide how to handle the emergency (yes/no) | |
void | ino_emergency_prompt_0 () |
ino needs help with microwave | |
void | ino_emergency_0 () |
her microwave is fine (either park or room conversation) | |
void | ino_emergency_prompt_1 () |
ino wants to play tennis | |
void | ino_emergency_1 () |
tennis goes well (convience store) | |
void | ino_emergency_prompt_2 () |
Ino wants to get some pizza. | |
void | ino_emergency_2 () |
head to pizza place, make some choices | |
void | ino_emergency_prompt_3 () |
Ino wants to see some music (favorite genre concert) | |
void | ino_emergency_3 () |
concert (default rock) + ?? | |
void | kanade_emergency_prompt_0 () |
Kanade's cat isn't feeling well. | |
void | kanade_emergency_0 () |
Kanade's cat ends up fine. | |
void | kanade_emergency_prompt_1 () |
Kanade needs to return some library books. | |
void | kanade_emergency_1 () |
Kanade talks in the park outside, you buy a book inside during the sale. | |
void | kanade_emergency_prompt_2 () |
Kanade is getting a limited time release. | |
void | kanade_emergency_2 () |
We acommonpany Kanade for the book release, and get some food after. | |
void | kanade_emergency_prompt_3 () |
Kanade wants to practice some baseball (but she won't tell us!) | |
void | kanade_emergency_3 () |
Kanade is pretty good at baseball. | |
void | rika_emergency_prompt_0 () |
Rika's team is down a player. | |
void | rika_emergency_0 () |
Rika invittes us to fill in her basketball team. | |
void | rika_emergency_prompt_1 () |
Rika needs to buy a gift for a party. | |
void | rika_emergency_1 () |
Rika is shopping for a card. | |
void | rika_emergency_prompt_2 () |
Rika has billiards tournament at the bar. | |
void | rika_emergency_2 () |
head to the bar for the billiards game | |
void | rika_emergency_prompt_3 () |
Rika wants to have a game night with friends. | |
void | rika_emergency_3 () |
We head over to hang out with Rika. | |
void | rin_emergency_prompt_0 () |
Rin is playing games, get her some snacks. | |
void | rin_emergency_0 () |
Rin plays some Bosco Party if you bring something over (alcohol or chips) | |
void | rin_emergency_prompt_1 () |
Rin is playing games, get her a slice of pizza. | |
void | rin_emergency_1 () |
Pizza (Bosco Party but no mini games) | |
void | rin_emergency_prompt_2 () |
Rin is playing games, get her some alcohol from the convenience store. | |
void | rin_emergency_2 () |
head to conveneince store for some alcohol, finally learn more about Rin (SuperCooked 2) | |
void | rin_emergency_prompt_3 () |
Rin is sick, cheer her up by buying the correct items. | |
void | rin_emergency_3_chips_loop () |
chip confirmation loop | |
void | rin_emergency_3_pizza_loop () |
pizza confirmation loop | |
void | rin_emergency_3 () |
Rin is sick, we head over to get our confession (Bosco Cart) | |
vnlib::story_fx | get_emergency_prompt (character::CHAR_ENUM c) |
get the latest emergency prompt per character. no bounds check | |
vnlib::story_fx | get_emergency_story (character::CHAR_ENUM c) |
get the latest emergency story per character. no bounds check | |
void | saturday_emergency_excuse () |
excuse used on Saturday when handling a real emergency | |
void | generic_emergency () |
a generic emergency prompt to keep the flow of text simple | |
void | reject_excuse (character::CHAR_ENUM c) |
respond to character c with rejection | |
bool | handle_emergency (vnlib::story_fx emergency_excuse) |
call during a weekend event to prompt for emergency story | |
void | ino_weekend_0 () |
ino's first weekend (park + cafe) | |
void | ino_weekend_1 () |
ino is taking care of a friends pet | |
void | ino_weekend_2 () |
ino is heading to an open mic at the bar | |
void | ino_weekend_3_beer_purchase () |
ino needs to visit her family in the countryside | |
void | ino_weekend_3 () |
void | kanade_weekend_0 () |
kanade is heading to buy some groceries | |
void | kanade_weekend_1 () |
kanade is doing some volunteer work | |
void | kanade_weekend_2 () |
kanade is sick from doing too much work (family is also gone camping) | |
void | kanade_weekend_3 () |
kanade is baking food for her family | |
void | rika_weekend_0 () |
rika is shopping for garden supplies | |
void | rika_weekend_1 () |
rika is planting her garden | |
void | rika_weekend_2 () |
rika is heading to a street festival (learn about sister) | |
void | rika_weekend_3_no_high_relation_conv () |
shared conversation when mc doesn't talk to others before rika_weekend_3 | |
void | rika_weekend_3 () |
rika is going to karaoke with friends | |
void | rin_weekend_0 () |
rin is shopping for some games | |
void | rin_weekend_1_td () |
play the td game. bonus conversation for asking Rin for help | |
void | rin_weekend_1 () |
rin is going to the video game lounge | |
void | rin_weekend_2_game () |
play the specific game, note that the emergency happens before this so the game could be none | |
void | rin_weekend_2 () |
rin wants to play the game you bought earlier | |
void | rin_weekend_3 () |
rin wants to go cycling | |
vnlib::story_fx | get_next_story (character::CHAR_ENUM c) |
get the next weekend event for a character. no bounds check! | |
bool | handled_event () |
if a character relationship is high enough, have an event | |
void | handle_sunday_event (character::CHAR_ENUM saturday_char) |
a generic sunday event. created to support runtime_state::EMERGENCIES_ON_SUNDAY | |
void | playtest_emergency_setup (character::CHAR_ENUM c, int story) |
setup variables to test both emergency prompts and stories | |
Variables | |
constexpr int | WEEKEND_REL_PROGRESS_MULTIPLIER = 9 |
point increase needed between weekend events | |
constexpr int | EMERGENCY_REL_PROGRESS_MULTIPLIER = 6 |
point increase needed between weekend events | |
constexpr int | MAX_STORY_COUNT = 4 |
array bounds for various weekend event arrays | |
constexpr int | MAX_EMERGENCY_COUNT = 4 |
array bounds for various weekend emergency arrays | |
character::CHAR_ENUM | original_story |
set when a weekend event starts | |
character::CHAR_ENUM | current_story |
set when a weekend event starts and overridden when emergency starts | |
bool | helped = false |
global state recording if an emergency was helped or not | |
const vnlib::SayOptions | no_block_options = diable_block_options() |
global options to avoid blocking. used for various game prompts | |
bool | kanade_emergency_3_leave_early |
internal | |
bool | rika_emergency_2_leave_early |
internal | |
bool | rin_emergency_3_confirmed |
internal | |
const vnlib::story_fx | EMERGENCY_PROMPT_INO [] = {ino_emergency_prompt_0, ino_emergency_prompt_1, ino_emergency_prompt_2, ino_emergency_prompt_3} |
ino's emergency prompts | |
const vnlib::story_fx | EMERGENCY_PROMPT_KANADE [] = {kanade_emergency_prompt_0, kanade_emergency_prompt_1, kanade_emergency_prompt_2, kanade_emergency_prompt_3} |
kanade's emergency prompts | |
const vnlib::story_fx | EMERGENCY_PROMPT_RIKA [] = {rika_emergency_prompt_0, rika_emergency_prompt_1, rika_emergency_prompt_2, rika_emergency_prompt_3} |
rika's emergency prompts | |
const vnlib::story_fx | EMERGENCY_PROMPT_RIN [] = {rin_emergency_prompt_0, rin_emergency_prompt_1, rin_emergency_prompt_2, rin_emergency_prompt_3} |
rin's emergency prompts | |
const vnlib::story_fx | EMERGENCY_STORY_INO [] = {ino_emergency_0, ino_emergency_1, ino_emergency_2, ino_emergency_3} |
ino's emergency stories | |
const vnlib::story_fx | EMERGENCY_STORY_KANADE [] = {kanade_emergency_0, kanade_emergency_1, kanade_emergency_2, kanade_emergency_3} |
kanade's emergency stories | |
const vnlib::story_fx | EMERGENCY_STORY_RIKA [] = {rika_emergency_0, rika_emergency_1, rika_emergency_2, rika_emergency_3} |
rika's emergency stories | |
const vnlib::story_fx | EMERGENCY_STORY_RIN [] = {rin_emergency_0, rin_emergency_1, rin_emergency_2, rin_emergency_3} |
rin's emergency stories | |
bool | ino_weekend_3_agreement |
internal | |
bool | ino_weekend_3_mom_happy |
internal | |
bool | rika_weekend_3_deny_sister |
internal | |
bool | rika_weekend_3_perfect |
internal | |
bool | rin_weekend_0_accepted |
internal | |
bool | rin_weekend_1_td_skip |
internal | |
bool | rin_weekend_2_ignored |
internal | |
bool | rin_weekend_3_no |
internal | |
const vnlib::story_fx | WEEKEND_INO [] = {ino_weekend_0, ino_weekend_1, ino_weekend_2, ino_weekend_3} |
ino's weekend events | |
const vnlib::story_fx | WEEKEND_KANADE [] = {kanade_weekend_0, kanade_weekend_1, kanade_weekend_2, kanade_weekend_3} |
kanade's weekend events | |
const vnlib::story_fx | WEEKEND_RIKA [] = {rika_weekend_0, rika_weekend_1, rika_weekend_2, rika_weekend_3} |
rika's weekend events | |
const vnlib::story_fx | WEEKEND_RIN [] = {rin_weekend_0, rin_weekend_1, rin_weekend_2, rin_weekend_3} |
rin's weekend events | |
character::CHAR_ENUM | saturday_character |
ephemeral state to avoid sat+sun having same char. only possible as saves don't happen on weekends | |
various weekend event functions
these will reveal information about each character (along with the mc) it will establish preferences that will eventually culminate in a confession.
void weekend_event::generic_emergency | ( | ) |
a generic emergency prompt to keep the flow of text simple
most weekend events will have some respones from the main character after the emergency happens. example : "is everything alright?" instead of adding a more complex emergency state, have a generic emergency. This can potentially be used to create more content for this type of runtime mode (runtime_state::EMERGENCIES_ON_SUNDAY)
bool weekend_event::handle_emergency | ( | vnlib::story_fx | emergency_excuse | ) |
call during a weekend event to prompt for emergency story
characters are sorted by relationship decreasing so that the second liked character invokes an emergency. The emergency progress does not advance when ignoring. This means a character will have the same emergency across multiple weekends. This is so players get the opportunity to see all parts of an emergency path without needing relationship planning. Note that the emergency decision will increase the relationship of the chosen characters path and reduce the "ignored" character's path.
bool weekend_event::handled_event | ( | ) |
if a character relationship is high enough, have an event
sort characters by relationship decreasing, use the first character that has a relationship above the story progress threshold. currently: WEEKEND_REL_PROGRESS_MULTIPLIER points per story
void weekend_event::ino_emergency_0 | ( | ) |
her microwave is fine (either park or room conversation)
void weekend_event::ino_emergency_1 | ( | ) |
tennis goes well (convience store)
void weekend_event::ino_emergency_2 | ( | ) |
head to pizza place, make some choices
void weekend_event::ino_emergency_3 | ( | ) |
concert (default rock) + ??
void weekend_event::ino_weekend_0 | ( | ) |
ino's first weekend (park + cafe)
void weekend_event::ino_weekend_1 | ( | ) |
ino is taking care of a friends pet
void weekend_event::ino_weekend_2 | ( | ) |
ino is heading to an open mic at the bar
void weekend_event::ino_weekend_3 | ( | ) |
void weekend_event::kanade_emergency_0 | ( | ) |
Kanade's cat ends up fine.
void weekend_event::kanade_emergency_1 | ( | ) |
Kanade talks in the park outside, you buy a book inside during the sale.
void weekend_event::kanade_emergency_2 | ( | ) |
We acommonpany Kanade for the book release, and get some food after.
void weekend_event::kanade_weekend_0 | ( | ) |
kanade is heading to buy some groceries
void weekend_event::kanade_weekend_1 | ( | ) |
kanade is doing some volunteer work
void weekend_event::kanade_weekend_2 | ( | ) |
kanade is sick from doing too much work (family is also gone camping)
void weekend_event::kanade_weekend_3 | ( | ) |
kanade is baking food for her family
void weekend_event::rika_weekend_0 | ( | ) |
rika is shopping for garden supplies
void weekend_event::rika_weekend_1 | ( | ) |
rika is planting her garden
void weekend_event::rika_weekend_2 | ( | ) |
rika is heading to a street festival (learn about sister)
void weekend_event::rika_weekend_3 | ( | ) |
rika is going to karaoke with friends
void weekend_event::rin_emergency_0 | ( | ) |
Rin plays some Bosco Party if you bring something over (alcohol or chips)
void weekend_event::rin_emergency_1 | ( | ) |
Pizza (Bosco Party but no mini games)
void weekend_event::rin_emergency_2 | ( | ) |
head to conveneince store for some alcohol, finally learn more about Rin (SuperCooked 2)
void weekend_event::rin_emergency_3 | ( | ) |
Rin is sick, we head over to get our confession (Bosco Cart)
void weekend_event::rin_weekend_2 | ( | ) |
rin wants to play the game you bought earlier