-
Notifications
You must be signed in to change notification settings - Fork 153
Valhalla
Magic integrates with ValhallaMMO.
Valhalla profile levels are exposed as Magic attributes. Skill and Level XP is exposed as a Magic currency.
NOTE: All of the examples in here will go in new files that you create. Eventually there will be a valhalla example to do all of this for you.
For now, the best approach is to disable path progression and let Valhalla handle leveling up.
In plugins/Magic/paths/default.yml put:
default:
allow_property_overrides: false
This will prevent paths from overriding mana max and regen.
Valhalla levels can be read as attributes, and so used in class, spell and other parameters.
For example, if path progression is disabled you will want players to gain mana on level up.
In plugins/Magic/classes/mage.yml put:
mage:
path:
mana_max: valhalla_level_alchemy * 10 + 50
mana_regeneration: valhalla_level_alchemy * 2 + 5
In this example we're using the alchemy profile and skill, but in the future there will be a builtin magic profile and corresponding skill.
Spells can award Valhalla XP instead of Magic SP, so the player can level up by casting spells.
In plugins/Magic/config/currency.yml put:
builtin_currency:
sp:
replacement: valhalla_xp_alchemy
You should see a message on startup saying Valhalla integration is working, listing all of the available attributes and currencies. If you want, you can use a spell to test this:
In plugins/Magic/spells/valhalla.yml put:
valhalla:
actions:
cast:
- class: Message
message: "Your Valhalla alchemy level is $valhalla_level_alchemy with $valhalla_level_alchemy XP"
parameters:
target: "self"
The magic profile and skill can be disabled.
In plugins/Magic/config/valhalla.yml put:
valhalla:
profile:
enabled: false
- Add a builtin
magicprofile and skill - Add spell perks and other buffs
- Add a
valhallaexample that turns the above on.
- Home
- FAQ
- Support
- Progression
- Spell Points
- Crafting
- Basic Setup
- Customization
- Resource Pack
- Examples
- Messages and Languages
- Vanity Items
- NPCs
- Magic Blocks
- Magic Mobs
- Putting Images on Maps
- Using MySQL or SQLite
- Placeholders
- Skript
- Regions