Extensions:Character Genetic Data

From Lorekeeper Wiki
Jump to navigation Jump to search
Character Genetic Data
Description Adds genetic data to Characters and MYOs.
Author(s) Pure09 (aka DeeP-ci)
Status tested locally
Github ext/v2/character-genetic-data
LK Version 2.x
Contains a Migration






Create and edit genes, then add them to characters and myos!

Genomes can either be secret, revealed only by specific items or manual staff intervention, or completely public.

Installation

Pull the github branch. Resolve any conflicts then run the following:

  • php artisan migrate
  • php artisan add-site-settings
  • php artisan update-extension-tracker

Configuration

By default, genomes are hidden and only the admin can see/edit them. This can be configured.

In order to allow users to see genomes regardless of their visibility, give their rank the power "view_hidden_genomes".

If you want genomes to not be hidden at all, change the site setting "genome_default_visibility" to 2. If you want them half-visible, set it to 1. By default, it is set to 0 (all genomes are secret).

There is an item tag called "Gene Reveal". It can be added to items to allow them to be spent on either partially or fully revealing a genome. The strength of the reveal can be configured.

Usage

Standard Gene Setup Tutorial

  1. Go to the admin dashboard and then click on Gene Groups.
  2. Click New and select Standard in Type dropdown menu.
  3. For this tutorial, we're going to keep it simple with the Dun gene in horses. The dun gene is known as nD and DD. In the field for Length, put in 2. Then, in the default inheritance, either put n or D, not both.
  4. Scroll down to the Create Alleles area. Click New Allele.
  5. You should see a box with mention of "Recessive", "Hidden", and "Short summary of allele".
  6. For a dominant gene, click on the "Recessive" button so that it changes to Dominant with a black background. Do the same thing with "Hidden" to make it automatically visible. In our case, I'm putting D first and then make it be visible with the short summary being "Dun".
  7. Click on New Allele again, this time you will do the opposite of what you did before. Make sure you only put one letter, either n or D as an example.
  8. Press Save Changes button and it should say "Category updated successfully". Congrats on making your first Gene Group!

For every gene group, you must do this each time.

Troubleshooting

No issues known. Ping @Pure09 on the lorekeeper discord for support if needed.

Images

See Also