Update Learning authored by Ashijin's avatar Ashijin
...@@ -9,6 +9,44 @@ The most obvious way to learn spells is by using admin commands. ...@@ -9,6 +9,44 @@ The most obvious way to learn spells is by using admin commands.
The admin command to teach someone a spell is: The admin command to teach someone a spell is:
`/mythicrpg spells teach [name] [spell]` `/mythicrpg spells teach [name] [spell]`
You can also use the `unlearn` command to remove a spell from someone.
### Archetypes ### Archetypes
#### by Leveling
Spells can be configured to automatically be given by an archetype upon reaching a certain level.
This is configured in an archetype's `SpellUnlocks` section.
```
Pyromancer:
Group: CLASS
Display: 'Pyromancer'
SpellUnlocks:
- Fireball
- RainOfFire 10
```
In this example, a player would learn `Fireball` immediately upon gaining the Pyromancer archetype, and would learn `RainOfFire` upon reaching level 10.
If a player loses an archetype, all spells learned from it will be lost.
#### Talent Trees
_coming soon_
### Mechanics
Players can be taught spells using the `teachSpell` mechanic (or have them removed via the `forgetspell` mechanic).
You can use this to create NPCs or [[Custom Menus]] that teach spells, have a boss that teaches a spell upon being defeated, or to use with Crucible to create your own custom tome-type items.
```
Skills:
- teachSpell{spell=DoubleJump} @trigger
```
### Signs ### Signs
### Tomes Spell Signs can be used to create signs that will teach spells when right-clicked.
\ No newline at end of file
To create one, you simply make a sign with the first line as `[Learn Spell]` and the 2nd line as the spell's ID.
![image](uploads/d48450ed19e9af3f7ea3c0fd260b515c/image.png)
### Tomes
Tomes are special items that can teach you a spell. These can be given to players directly or (more likely) put in loot chests, dropped by mobs, etc.