Custom Yarn Functions - AIessa/WhenLifeGivesYouLemons GitHub Wiki

check_task

Effect: Returns whether a given task has been added by the player.

UseCase:

<< if check_task("call mom")>>

("call mom" can be replaced with another task, using the same words as when the task is added with the command "AddNewTask")

check_energy

Effect: Returns current player energy value.

UseCase:

<< if check_energy(" ") > 10 >>

( " " can be replaced with anything, Yarn just needs an argument even though it isn’t used)

check_relationship

Effect: Returns current relationship value with given NPC.

UseCase:

<< if check_relationship("Lotte") == not-so-good >> 

(Lotte can be replaced with another NPC in the scene, "not-so-good" would be the relationship value you want to check for, use same word as in command "Relationship")

check_card

Effect: Returns whether given card has been collected.

UseCase:

<< if check_card("anger_lv1")>> 

(anger_lv1 can be replaced with another card name)

check_event

Effect: Returns whether given event has been logged.

UseCase:

<< if check_event("amy_angry_at_game")>>

(amy_angry_at_game can be replaced with another logged event)

skill_check

Effect: Calculates the chance of success of player, given the xp and difficulty as input. Returns success (true) or failure (false).

UseCase:

<< if skill_check("emotion", "4")>>

(replace "emotion" with any of the other possible xp names and "4" with the desired difficulty, i.e. min. number of xp in that category to succeed with 100% chance at 100% energy.)