BISM-Team / TRPG-Website

https://trpg-website.vercel.app
GNU General Public License v3.0
1 stars 0 forks source link

Make CharacterInstance model #40

Closed difanta closed 1 year ago

difanta commented 1 year ago

It is created in when a character is instantiated into a playable character, use this instead of Character directly. Characters remains for consultation in wiki (like monsters, characters, npcs) and 'creation from' porpouses

difanta commented 1 year ago

More thought is needed on this. There are two ways:

difanta commented 1 year ago

There are separate use cases for both:

difanta commented 1 year ago

A solution could be that every time a new character is being created the user has two options:

  1. copy create entirely from another character: the abilities, items, effects, properties all get duplicated and are not linked at all
  2. create from and link to a character: copy only the properties and deep link the instance definition to the character's. The instance can act freely but its character definition is tied to the original and changes propagate

1 is the default way of creating a new character in standard ways, 2 is the default (or a popup choice is presented) when adding a character to a wiki.

difanta commented 1 year ago

In the end it is better to just use Characters and provide the feature to copy create a character. The handling of instance/character duality is honerous and is a small use-case. When a base character is modified all deriving characters are kept the same and if one desires to modify some of them he can just delete that character and re-create it from the updated base character.