Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicCrucible MythicCrucible
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 57
    • Issues 57
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicCrucibleMythicCrucible
  • Wiki
  • Dynamic Lore Generation

Dynamic Lore Generation · Changes

Page history
Create Dynamic Lore Generation authored Aug 21, 2023 by LcorpOfficial's avatar LcorpOfficial
Hide whitespace changes
Inline Side-by-side
Showing with 63 additions and 0 deletions
+63 -0
  • Dynamic-Lore-Generation.md Dynamic-Lore-Generation.md +63 -0
  • No files found.
Dynamic-Lore-Generation.md 0 → 100644
View page @ f6a58a37
Dynamic Lore Generation refers to generating lore with mythic automatically, parsing placeholders and using templates.
Here is an example item using these features. The details to make something like this yourself is explained in the following documentation.
![image](uploads/d2c71437e7905d4771bbbf9b50d087ad/image.png)
## Lore Templates
The base Mythic folder or individual pack folder can contain a `lore-templates.yml` file where lore templates are defined.
Here is an example of a `lore-templates.yml` file.
```yml
BasicWeaponTest:
Lines:
- '<white><lore.stats>'
- ''
- '<placeholder.TestLine>'
- '<gold><placeholder.TestConditionalPlaceholder>'
- ''
- '<lore.Description{wrap=10}>'
```
An item could utilize this template by using `Lore.Template: BasicWeaponTest ` instead of providing a list of lore:
```yml
TestLoreTemplates1:
Id: BLAZE_ROD
Display: 'Test'
Lore:
Template: BasicWeaponTest
Description: Lorem ipsum dolor sit amet
Stats:
- CRITICAL_STRIKE_CHANCE 0.5 ADDITIVE
- CRITICAL_STRIKE_DAMAGE 2.0 ADDITIVE
- HEALTH 20to30 ADDITIVE
```
Note that `Description` is used as a placeholder in the `BasicWeaponTest`'s `<lore.Description{wrap=10}>` placeholder. You can define arbitrary lore placeholders and use them the same way as this.
## Lore Placeholders
The `<placeholder.*>` placeholders in the above example are referencing the examples provided from the new [`placeholders.yml`](TODO:LINK), which can also be used.
## Other Information about Lore Templates
- Every node under Lore other than `Template` will be passed to the template as a `<lore.*>` placeholder (where `*` is the node you specify.)
- Templates can use any other applicable placeholders supported by drop tables.
- A line with `<lore.stats>` will be iterated and replicated for each stat using the tooltip formats configured in [`stats.yml`](TODO:LINK).
- More features for this are planned as well.
## Lore Attributes
Attributes are formatted similarly to how skills are. In our previous example, `wrap` is considered an Attribute.
```yml
<lore.node{attribute=value}>
```
| Attribute | Aliases | Description | Default |
|----------------|-------------|------------------------------------------------------------------------|---------|
| wrap | | How many characters are displayed before wrapping text to the next line| N/A |
\ No newline at end of file
Clone repository
  • Home
  • Changelogs
  • Commands / Permissions
  • FAQ / Common Issues
Usage
  • Installation
  • Item Options
  • Item Skills
  • Item Durability
  • Custom Blocks
  • Furniture
  • Crafting Recipes
  • Custom Bags
  • Ammo System / Guns
New Mechanics
  • Item Mechanics
  • Item Targeters
  • Item Triggers
  • Item Conditions