# RPG

## Mechanics
### Equipment
- Weapon
- Armor
- Accessory
- Element

### Items
- Healing, light/strong
- MP recover?

### Activities
- Gambling?

## Todo List
- [ ] Player movement
- [ ] Walkable tiles
- [ ] Map: Riverhaven castle
- [ ] Map: World map
- [ ] Tiled converter
- [ ] Sprites: Font serifs
- [ ] Sprites: World map
- [ ] Dialogue system
    - [ ] Dialogue: Letter spacing
    - [ ] Dialogue: Word wrapping
    - [ ] Dialogue: Button to scroll/continue
    - [ ] Dialogue: Branching / variables
- [ ] Tiles (castle): empty throne, throne room rug
- [ ] Sprites: guard, townsfolk, king, archmage, malarch

All `backticked-items` are considered variables that should be interpreted and replaced in the following outline. A list of item types are provided:
- `nature-orb`: The nature orb, known as the Bloom of Eternal Spring.
- `nature-orb-level`: Greenhollow Forest contains a dungeon which contains `nature-orb`, and is guarded by `nature-orb-boss`.
- `nature-orb-boss`: A dryad that is weak to fire magic and slash attacks.
- `earth-orb`: The earth orb, known as Adamantine Core.
- `earth-orb-level`: The caverns below Stonepeak.
- `earth-orb-boss`: The leader of the (goblins? other humanoids?)
- `water-orb`: The water orb, known as The Abyssal Pearl.
- `water-orb-level`: Off the coast near Tidehaven is an underwater dungeon only accessible by using `earth-orb`.
- `water-orb-boss`: A siren/mermaid thing inhabiting the ocean palace, weak to fire magic.
- `fire-orb`: The fire orb, known as the Ember of Creation.
- `fire-orb-level`: A maze of twisty passages, all very hot, down below the Volcano.
- `fire-orb-boss`: A magma golem guarding the `fire-orb` since ancient times, weak to water/ice attacks.

## Actual Story

### Riverhaven
EXT. RIVERHAVEN DAY

The camera pans across a castle town and comes to rest over the weapons and armor shop. Cut to the interior shot of the building, which blacks out the outside.

INT. BLACKSMITH SHOP

Eirik is working in front of a forge, swinging his hammer. The blacksmith is standing at the counter. An NPC walks up to the counter, and after a few seconds, leaves. The blacksmith walks over to Eirik.

BLACKSMITH: You're being summoned to the Royal Court. The guards are waiting for you out back. I can finish up here.

The player can walk around, but there's not much to do. Talking to the blacksmith produces "Go on, now." When the player leaves, fade to the throne room.

INT. THRONE ROOM

ARCHMAGE: Ah, young lad. Thank you for coming. I am the Royal Archmage and His Highness has a task most important.

ARCHMAGE: Just to confirm, what was your name again?

The player can enter their name at this time. Eirik is the default choice and written into the script.

ARCHMAGE: Ah, Eirik, yes... You are an orphan, are you not?

ARCHMAGE (if no): Ha, dear child. The smith is not your parent.
ARCHMAGE (if yes): Yes, the smith raised you as his own.

ARCHMAGE: Surprised that I know this? It was I who placed you in his care. I knew your mother shortly before she perished. It was my promise to her that you be kept safe.

ARCHMAGE: I have done so, and now I must ask a task of you. There is an artifact the kingdom needs you to retrieve. Will you do this for us?

KING (if no): We are not asking. It is a royal command. 

KING (if yes): Excellent news! It pleases us to hear this.

ARCHMAGE: Through my research, I have discovered an item of great power near the city of Greenhollow. You shall set off at once. I will grant you a small amount of money to prepare for your journey, with much greater reward after you have completed the task.

ARCHMAGE: Go to Greenhollow and speak with the mayor there. He will be able to guide you to your ultimate destination. Good luck.

The player now has free agency. They are given 100g to start.

If they speak to the king, he says "Go forth!"

If they speak to the Archmage, he says "Good luck."

Talking to the blacksmith yields "When your kingdom calls, you answer."

Nobody else in Riverhaven has useful information.

### Greenhollow
Greenhollow is at the edge of a large forest.

EXT. GREENHOLLOW

MAYOR: Follow the old Northeastern trail. Be warned, the forest is a bit wild and dangerous lately.

The player traverses the woods for a bit until they reach a tree.

## Story

### Chapter: Riverhaven
- Eirik works as the blacksmith's apprentice in the castle town of Riverhaven.

### Chapter: Archmage's Request
- Eirik is summoned to the the royal court. While there, the Archmage asks of him to retrive an ancient artifact from the nearby town of Greenhollow. When the player protests their qualifications for such a task (being they're a blacksmith's apprentice), the king interrupts and tells the player that they are the prophesied hero of old.

### Chapter: Nature
- Player eventually travels to Greenhollow. While there, they hear about some strange goings-on with the local fauna - random attacks at the edges of the forest and so forth. Local rumors lead them into the forest to retrieve the artifact from `nature-orb-level`.
- Player gets into the forest and finds `nature-orb-level`, which is a dungeon that eventually leads to the caretaker of the artifact `nature-orb-boss`. During the confrontation, `nature-orb-boss` reveals that the artifact they are seeking is part of a greater whole (the other orbs), and such things will not be gotten so easily. The name is also revealed for the artifact `nature-orb`.
- Player returns to Riverhaven to get more info, and is contacted by the Archmage. He thanks them for their effort, and tells them there are three more orbs to find: the `earth-orb` in Stonepeak, the `water-orb` in Tidehaven, and the `fire-orb` somewhere near the old volcano. The player can visit them in any order, but are prevented from entering the dungeon instances depending on the orb(s) they possess.

### Chapter: Earth
- Retrieving the `earth-orb` in the Mountain Citadel of Stonepeak:
    - Stonepeak is an underground dwarven citadel. Upon arrival, the king throws a grand reception for the player given they're the most recent emissary they've had. The orb is confirmed to be held by the dwarven king, and he has no intention of giving it up.
    - At the reception, the party is attacked by a group of underground enemies. The royal guard is overwhelmed, and the king asks the player for help retrieving his daughter. Being a dwarven woman, she's built like one, so there's a strong implication that the capturers are lovers of the... short and stacked build.
    - The player goes through the Stonepeak dungeons and fights `earth-orb-boss`. The daughter is rescued, but it's revealed this was an elaborate plot to usurp the throne from her father. The player's intervention threw a wrench in the whole thing, so she gives up. They return to the royal chambers where the king grants the party the `earth-orb` after being filled in on the details of the fake kidnapping.

### Chapter: Water
- Retrieving `water-orb` from near Tidehaven:
    - After receiving information about the ancient sealed cavern near Tidehaven, player uses `earth-orb` to open a large door that opens to a tunnel under the ocean. The tunnel leads to an underwater citadel that is the `water-orb-level`.
    - Entering the citadel, they notice a spell is cast on them that allows them to breathe underwater. Which is good, because the citadel is completely full of water.

### Chapter: Fire
- Going to `fire-orb` in the heart of an active volcano in the Blasted Lands, called such because it's covered in cooled lava fields surrounding an active volcano; the `water-orb` provides protection from the intense heat. They find a town near the edge of the Blasted Lands, which speaks of the prophecy that will open the Blasted Lands to the town inhabitants.
    - Party travels though a maze of caverns, fighting fire-based monsters until they encounter `fire-orb-boss`. After defeating `fire-orb-boss`, the lava begins to cool in the volcano.
    - When the party returns to the town, people have already noticed the prophecy fulfilled, with some planning to set out into the Blasted Lands immediately.

### Chapter: Reveal
The Archmage tells them of a town nearby that he can travel to. The party will be able to wait for him at the Mayor's house in the meantime. If they talk to townfolk, the townfolk are suspicious and scared, and some mention that the Tower of Shadows is nearby.

When they meet the mayor, he is obsequious and a bit creepy. The player is served dinner, during which it is revealed they are drugged as the party loses all motor control while staying conscious. The Archmage comes into the room and takes the Orbs, where the Mayor calls him "Master Malachar." He calls the player and his party stupid for not having figured him out, and that he most enjoys killing when his victims are fully aware, as is the case now.

Just as Malachar is about to murder the party, a rock flies through the window of the manor. The Mayor looks outside and sees the town is rioting and chanting for him to get out. Malachar teleports away and the Mayor is dragged out by the townfolk. A doctor is called the the player's party recovers at the local inn.

After the party awakens, they are told that the Mayor was evil and embezzling town funds. The player reveals to the townfolk that the Mayor was working for Malachar, which angers but doesn't surprise them. The player is told that The Tower of Shadows is nearby, where Malachar resides.

A scholar tells them that the only reason for Malachar wanting the orbs would be to summon the demon Azaroth to supplement his own power and rule the world.

### Chapter: Tower of Shadows
The Tower of Shadows mostly consists of random higher-level enemy encounters with occasional bits of Malachar's research and writings scattered throughout. Malachar is at the top, which forces the party to fight their way through all floors.

### Chapter: Confrontation
The party enters just as Malachar is finishing the summoning ritual. After a bit of monologuing, he engages the party in combat.

As the party defeats Malachar, Azaroth begins laughing and engages the party in combat.

## Behind the Scenes
- Player is given some gold at the start and told they can request free basic equipment a single time from the castle staff.
    - Unknown to the player, taking the free help is recorded.

