DoPetrification(int, object, object, int, int)

This is a wrapper for how Petrify will work in Expansion Pack 1.

void DoPetrification(
    int nPower,
    object oSource,    
    object oTarget,
    int nSpellID,
    int nFortSaveDC
);

Parameters

nPower

Spell duration measured in rounds.

oSource

Object that is casting the spell.

oTarget

Object that the spell is cast at.

nSpellID

SPELL_*

nFortSaveDC

Difficulty challenge rating of the spell's save.


Description

This is a wrapper for how Petrify will work in Expansion Pack 1.

The following spells/scripts are affected: Flesh to Stone, breath petrification, gaze petrification, and touch petrification.



Remarks

Only works if oSource is NOT friendly towards oTarget.

The duration is permanent against NPCs. Henchmen are kicked from the party if petrified.

The duration for players depends on the game's difficulty setting. For game difficulties "very easy", "easy" and "normal" the duration is rounds per second based on the nPower variable. For game difficulties "core rules" and "difficult", this is fatal for players and pulls up the death gui.


Requirements

#include "x0_i0_spells"


Version

???

See Also

constants:  GAME_DIFFICULTY_* | SPELL_*
categories:  Spells Functions


author: Mistress