Difference between revisions of "Extensions:Character Genetic Data"
(Okay for real added the image since forgot I changed the name of the pic.) |
(Added more detail.) Tag: 2017 source edit |
||
| Line 5: | Line 5: | ||
==Installation== | ==Installation== | ||
| − | Pull the github branch. Resove any conflicts then run the migrations, add-site-settings and update-extension-tracker. | + | Pull the github branch. Resove any conflicts then run the migrations with php artisan migrate, php artisan add-site-settings and php artisan update-extension-tracker. |
==Configuration== | ==Configuration== | ||
Revision as of 13:56, 7 September 2025
| 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. Resove any conflicts then run the migrations with php artisan migrate, php artisan add-site-settings and 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
- Go to the admin dashboard and then click on Gene Groups.
- Click New and select Standard in Type dropdown menu.
- 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.
- Scroll down to the Create Alleles area. Click New Allele.
- You should see a box with mention of "Recessive", "Hidden", and "Short summary of allele".
- 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".
- 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.
- 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.