For the purposes of this section, I will refer to magic and spells, but all these instances can refer to mental abilities or superpowers interchangeably as needed for your setting.
Spells are cast instantaneously, unless they are a ritual, and they are treated as ranged or melee attacks as appropriate for the spell (e.g., a fireball is ranged, and a chilling touch is melee). When a spell is cast, the caster rolls a d20+Casting skill bonus against the DC indicated in the spell listing plus or minus any adjustments or ADV/DIS as determined by the GM. On a success the spell effects are applied to the target, on a failure, the spell fizzles and the caster gains the fatigued condition for one round unless otherwise stated in the spell description. On a natural 20 or a natural 1, the critical effects portion of the spell listing takes effect as appropriate.
Different settings may have alternative ways of assigning spells that a caster knows or dictating how magic works, but in the base game anybody has the potential to learn magic and all spells that a caster learns are a specific formula unique to each caster and they must discover that formula for themselves. Reading a spell formula from a scroll or spell book does not grant the caster the ability to cast that spell at will afterwards. However, they can use that written copy of the spell to aid in the research of their version of the spell. Casters can only learn a spell if they first research the spell for at least one week and then successfully roll a d20+Create Magic skill check against the DC to successfully cast the spell. If they succeed, they learn the spell and can cast it at will, but if they fail they do not learn the spell and cannot attempt to learn it again for at least one week. If they have access to a written copy of a spell to aid in research, they reduce the DC by 2. If they have access to a teacher, they can reduce the time to research by a number of days determined by the GM. Both the written spell copy and the teaching bonuses can be applied at the same time. For example:
Scrolls/Spell books/etc.:
A caster can also create a scroll or other written form of a spell on a d20+Create Magic skill bonus against a DC10. That scroll or written form of the spell can then be cast by anyone, regardless of magical skill by using the command word written onto the scroll. All normal effects are in place for a successful or failed roll or for critical successes or failures.
Rituals:
Spells with a ritual signifier after the name require at least 3 participants to successfully cast. Only one of the participants needs to know the spell and is designated the lead caster, but all the participants must concentrate for the duration of the spell, and anybody disturbed during the ritual casting must make a Mental Fortitude skill check against a DC of 10+ (either the amount of damage taken, or an amount set by the GM for non-damage disturbances). If they fail, they lose concentration and they are no longer a participant in the ritual. If the number of participants drops below the minimum requirement for the ritual before completion, the ritual fizzles and all remaining participants gain the fatigued condition. Some especially powerful rituals may have additional participants or other requirements laid out in their listings. Once the casting duration is complete, the lead caster rolls a Cast Magic skill check against the spell DC adding a +2 bonus to their roll if they have additional participants above the minimum required. The spell listing for the ritual will outline what happens on a success, failure, or critical roll.
In addition to the number of participants requirements, particular rituals may describe additional items, places, or times necessary to successfully cast the ritual (e.g., Sally the Great wishes to cast the ritual to banish the evil god Morbus. This specific ritual, in addition to requiring three participants, also calls for the sacrifice of a specific follower of Morbus and be conducted in the Circle of the Three Stones at midnight).
GM Tips:
In modifying a DC for a spell success, the GM should consider the experience of the caster and any other mitigating factors of the situation. A few examples of all these considerations are:
A caster who has not cast a spell that round and is not engaged in melee, can attempt to counter a spell being cast by an opponent that they can see. Countering is an opposed roll between the two spell casters with each rolling a d20 + Counter Magic skill bonus. When a spell is countered it fizzles, but the caster does not gain fatigue since they are assumed to have cast it properly, but the effect was nullified by the counter. If the spell is not countered, the caster proceeds to cast the spell as normal (e.g., Fred's party is in combat with a group of goblins and their witch doctor. During the second round Fred declares that his character is going to move behind the line of fighters in the party and not make an attack. The witch doctor declares that it is going to cast a fireball spell. Since Fred has not cast a spell that round and is not in melee with another goblin, he decides to counter the witch doctor’s spell. Fred and the witch doctor both roll d20 and add their respective Counter Magic bonus to their rolls. If Fred rolls higher, the witch doctor's spell fizzles with no other effect, but if the witch doctor rolls higher, he can roll to hit as normal for the fireball spell).
Stat Block for a Spell:
Fireball
Sleep
Summon Demon (Ritual)