Power stone

Power stone is an item power designed for an item in the Shadows of Undrentide game by the same name. The power stone ability is used to discharge the magic instilled in an item during its creation.

Use

 * Using a power stone will activate one predefined offensive ability and one predefined defensive ability.
 * Multiple items with powerstone will all use the same offensive and defensive abilities, though the abilities used can be switched by scripting.

Offensive abilities

 * 1) A single flaming arrow targets a single enemy creature within a colossal (10 meter) radius for 10d6 fire damage (no save).
 * 2) Ten enemy creatures within a colossal radius are each targeted by a single flaming arrow for 10d6 fire damage (no save).
 * 3) A caster level 10 slow spell is cast on the nearest enemy.
 * 4) Within a colossal radius the following happens:
 * Area of effects are destroyed
 * Unlocked doors of a hostile faction are closed or opened depending on their current position
 * Enemy creatures failing a DC 20 fortitude save are knocked down for 1d4 + 2 rounds and dealt 2d6 magical damage.
 * Placeables of a hostile faction are dealt 2d6 magical damage.
 * 1) Enemy creatures withing a large (5 meter) radius are arranged in order from lowest hit dice to highest, and the first 12d4 hit dice worth of enemy creatures in that order make a DC 14 fortitude save vs. death magic or die.  Creatures with 10 or more hit dice are unaffected.
 * 2) All enemy creatures (even in different areas) are stunned for 1 round.

Defensive abilities

 * 1) A caster level 13 spell mantle is cast on caster.
 * 2) A caster level 17 greater spell mantle is cast on caster.
 * 3) A caster level 10 haste (spell) is cast on caster.
 * 4) A caster level 11 greater stoneskin is cast on caster.
 * 5) A caster level 10 energy buffer is cast on caster.
 * 6) A caster level 10 improved invisibility is cast on caster.

Custom Content Notes
The numbers indicating the offensive and defensive abilities used have the corresponding number stored in the "dbItems" database under the integers "Q3B_POWERSTONE_OFF" and "Q3B_POWERSTONE_DEF" respectively.
 * script: