From The Mana World
(...christians...)
Line 19: Line 19:
*You died 50 times in a row. This qualifies you for our frequent dier program.
*You died 50 times in a row. This qualifies you for our frequent dier program.
*dingdingding! You died for the 100th time! PARTY!
*dingdingding! You died for the 100th time! PARTY!
*Why don't you just activate the God mode cheat? You don't know it? Did you try up, up, down, down, left, right, left, right, B, A?
*Why don't you just activate the god mode cheat? You don't know it? Did you try up, up, down, down, left, right, left, right, B, A?
*The God mode cheat didn't work? Maybe you entered it at the wrong moment?
*The god mode cheat didn't work? Maybe you entered it at the wrong moment?
*Oh dear, you used up all of your extra lifes. Now you have to stay here forever. Do you want to delete this character and create a new one? Just kidding, you know the way.
*Oh dear, you used up all of your extra lifes. Now you have to stay here forever. Do you want to delete this character and create a new one? Just kidding, you know the way.
*Congratualtions! You died 1000 times!
*Congratualtions! You died 1000 times!

Revision as of 21:06, 27 May 2009

This article is currently only a proposal

The features or design guidelines described in this article are only a proposal made by one or some persons. It has not been evaluated or accepted by the core development team yet. Feel free to add your personal opinion about them or make counter proposals.

Dying in the mana world

When a characters hit point reach zero or another situation causes the demise of a player character the character lies on the ground lifeless and unable to act. The player can either wait for another character to cast a revive spell on his character or just give up and accept the death of the character.

The realm of death

When a character dies it is teleported to the realm of death. The realm of death is a dark, surreal and eerie location where the laws of physics don't apply. Dominant colors: dark blue and purple. Design ideas: a) cave, b) glass floors floating over fractal background, c) 19th century look like the "end of time" in chrono trigger.

People in the realm of death have no access to their inventory, can not attack, use magic, craft or use any other active abilities. The characters actions are limited to moving around and communicating with NPCs and other characters. There is no way to die in the realm of death. The character is already dead, after all. Luckily the realm of death is not the final resting place for a poor adventurers soul. A cunning adventurer can find his way out of the death realm and back into the world of the living.

The Grim Reaper

As soon as the character awakes in the death realm he/she is greeted by the grim reaper. The grim reaper NPC counts how often the character died and responds accordingly. The first time the character dies he will just explain the situation. The next few times the reaper will give the character some useful tips for staying alive.

When the death count increases (and it will increase) the purpose of Reaper's greeting shifts from information to cheering up the player after its defeat using sarcastic remarks, dark humor and occasional 4th wall breaking. Example phrases:

  • Died again? That was quick.
  • Oh, you again? Did you miss me that much?
  • You really seem to enjoy dying.
  • Did you bring me a present?
  • Wow, of all your 37 deaths this one was by far the most hillarious.
  • You died 50 times in a row. This qualifies you for our frequent dier program.
  • dingdingding! You died for the 100th time! PARTY!
  • Why don't you just activate the god mode cheat? You don't know it? Did you try up, up, down, down, left, right, left, right, B, A?
  • The god mode cheat didn't work? Maybe you entered it at the wrong moment?
  • Oh dear, you used up all of your extra lifes. Now you have to stay here forever. Do you want to delete this character and create a new one? Just kidding, you know the way.
  • Congratualtions! You died 1000 times!

Escape

To escape the world of death the character has to find its way through a maze. The maze is randomly generated for each character and each visit in the death realm, so memorizing it or consulting guides does not help. This is implemented by using a map containing of multiple rooms connected by smart warp scripts. The maze has multiple exits which represent the location where the character will reenter the world of the living. The most desirable location is the one which is furthest away from the players start location in the maze. Exits ordered by increasing desirability:

  • respawn at first town
  • respawn in last visited town
  • respawn on the entrance of the map where the player died
  • respawn at the exact location of death

The purpose of the maze is to punish the player by stopping the progress of its character for a short time but to keep the player occupied and entertained during this forced time-out period.

Technical implementation of maze

maze generation

The script engine randomly-generates a maze of 7x7 elements (or maybe larger - we have to see how the players react on it). Possible element types are:

Labyrinth-elements.png
  • straight (x2)
  • curve (x4)
  • t-crossing (x4)
  • crossing (x1)
  • dead end (x4)
Examplelabyrinth.png

The algorithmn has to make sure that every element of the maze is reachable and it has to generate the maze based on a random seed. The algorithmn must produce the same maze when receiving the same seed. Potential algorithmns are explained in this wikipedia article: http://en.wikipedia.org/wiki/Maze_generation_algorithm

The start location is the center (a crossing). The exits are the corners of the maze (dead ends facing clockwise). The algorithmn assigns the desirability rating of each exit based on the length of the optimal route to the start.

Representation of the maze in the game

The layout of the map the player walks on while exploring the maze does not represent the real layout of the maze. Instead of that there are 20 single, isolated rooms - one for the possible 15 element types + 5 additional rooms for the start and the 4 exits. Each one is used to represent every instance of that element in the labyrinth. The real layout of the maze is "virtual". It is only known to the script.

When the player is, for example, in the south/west curve room of the map he could be in any south/west curve of the virtual maze. Only the script knows the real location inside the virtual maze. When the player leaves the room through the west exit the script checks the type of element in the virtual maze one element to the west and teleports the character to the eastern exit of the appropriate room.

Effect on gameplay experience

All characters who are currently trying to get back into the world of the living are technically on the same map. This means that it is possible to meet other characters while traveling through the maze. But the warp connections work differently for everyone. So when both characters leave the room they met in through the same exit they will most likely lose each other.

Saving the maze

To make sure that the character does not get trapped when the server is rebooted while the character is in the maze the state of the maze has to be saved as quest variables in the database. Only two variables are necessary to do so: Location inside the maze and the seed used by the random number generator for generating the maze.