Skip to content

Creating a skill module

corvec edited this page May 3, 2011 · 1 revision

Creating a Skill Module

A skill module can be easily created by adding skills to a plain text file. For additional help on any of the definitions declared herein, first refer to the existing module files.

Note that these skill files must follow the YAML standard - namely, this means you must use spaces instead of tabs for indentation.

Example Skill

The following is an example skill, Combat Prowess, which is a prerequisite for "Physical Strike" abilities.

Combat Prowess:
	Cost:
		Fighter: 4
		Scholar: 8
		Rogue: 6
		Templar: 6
	Requires:
		- Weapon

This skill can only be purchased once. Its costs are defined for each class. It requires a weapon skill. That's all you need!

Stacking Skills

If we wanted to create per-day skills based off of this skill, we could do that as follows:

Physical Strike Disarm:
	Cost:
		 Fighter: 2
		 Scholar: 4
		 Rogue: 3
		 Templar: 3
	Requires:
		 - Combat Prowess
	Max: 0

This skill can be purchased any number of times, as long as you have the skill Combat Prowess. If you wanted to cap the purchase at some other number, you could do so by setting Max to that number.

Advanced Requirements

Suppose you wanted a skill, Physical Strike Shatter. To purchase this, you have to have at least one Physical Strike Disarm per purchase.

Physical Strike Shatter:
	Cost:
		 Fighter: 3
		 Scholar: 6
		 Rogue: 4
		 Templar: 4
	Requires:
		 Physical Strike Disarm: 1
	Max: 0

If you wanted to require 2 Physical Strike Shatters per purchase, you would change the 1 to a 2.

Note that pyramided skills are not yet supported. If you desire this functionality, please contact the program author.

Racial Skills

It's easy to create skills that can only be purchased by a particular race or that cannot be purchased by a particular race. The first sort of skill can be created by only having a cost defined for a particular race. The second sort can be defined by listing that race under 'Prohibits'.

Barbarian Slay:
	Cost:
		Barbarian: 10
Mining:
	Cost:
		Dwarf Fighter: 2
		Dwarf Scholar: 3
		Dwarf Rogue: 3
		Dwarf Templar: 2
	Max: 0
Infusing Celestial Essence:
	Cost:
		Fighter: 8
		Scholar: 4
		Rogue: 6
		Templar: 4
	Prohibits:
		- Biata
		- Barbarian