What is an Archetype?
Archetypes in Mythic represent the idea of things like "classes", "professions", "jobs", etc. Rather then having separate generic systems for each, in Mythic you get the full set of tools to create these things however you want.
When creating Archetypes, they can be divided into groups. The most common group would probably be CLASS
, and this is the default group when making an archetype.
Configuring Archetypes
Archetypes are configured in the Archetypes
folder inside any Mythic pack. Just create a .yml
file inside the Archetypes folder, and you can put as many archetypes inside this file as you'd like - organize it however makes sense to you!
The example pack generates a classes.yml
file which contains several simple example classes.
Configuration
Option | Description |
---|---|
Group | The type of archetype this falls under, such as 'CLASS' |
Display | The proper display name of this archetype, such as 'Wizard' |
Description | The description of the archetype |
BaseStats | A list of base stats for this archetype |
SpellUnlocks | A list of spells unlocked by this archetype |
InitSkills | A list of skills called when a player gains this class |
QuitSkills | A list of skills called when a player loses this class |
LevelSkills | A list of skills called when a player levels up this class |
Skills | A list of mechanics applied to anyone with this archetype. Functions the same as how Mythic Mobs are configured |
Leveling | A list of options regarding how the class levels up |
Default Archetypes
You can configure a 'default' archetype that new players will start as in the config-archetypes.yml
file inside the MythicMobs
plugin directory.
With the example files, by default, RPG comes with 2 archetype groups - class
and profession
- which can be changed or removed if you'd like. The example files also come with a default class - Adventurer
. This class doesn't do anything by default but serves as a basic starting point for the examples.
ADVENTURER:
Display: 'Adventurer'
MaxLevel: 1
Examples
TestArchetype:
Group: CLASS
Display: 'an archetype'
Leveling:
MinLevel: 1
MaxLevel: 50
ExperienceCurve: TEST_STATIC
ExperienceSource: MOBS
BaseStats:
- HEALTH '20 + 5L'
InitSkills: []
QuitSkills: []
Skills:
- message{m="item"} ~onPickupItem ?triggeringItemType{type=TestFireWand}
TestMiner:
Group: PROFESSION
Display: 'Miner'
Leveling:
MinLevel: 1
MaxLevel: 50
ExperienceCurve: TEST_FORMULA
ExperienceSource: MINING