Skip to content
killme edited this page Jun 2, 2018 · 4 revisions

Attributes

Work-in-Progress

Defining Attributes

Attributes are properties that can be attached to players (or classes) and boosted by wand items.

You can use the internal Magic attributes system, or SkillAPI or Heroes to provide player attributes.

If using Magic's attributes, you must define your attributes in plugins/Magic/attributes.yml. No attributes are defined in the default configs, though there are some D&D style attributes in the RPG configs you can use as an example:

https://github.com/elBukkit/MagicPlugin/blob/master/Magic/src/main/resources/examples/rpg/attributes

Setting Attributes

If using Magic attributes, the /mage attribute command can be used to view and modify player attributes.

TODO: A GUI and spell actions for attribute manipulation.

Using Attributes in Mage properties

TODO: Ability to specify protection, strength, weakness, health and other properties in terms of attributes.

Using Attributes in Spells

Attributes can be used in equations in spell parameters. Any numeric parameter can be specified with attributes, for example:

missile:
  parameters:
    player_damage: "intelligence/5 + 4"
    entity_damage: "wisdom/2 + 3"

This would make the Magic missile spell increase damage depending on a player's intelligence or wisdom attribute.

Clone this wiki locally