GetScaledEffect(effect, object)
Creates a new effect based on the game difficulty.
effect GetScaledEffect( effect eStandard, object oTarget );
Parameters
eStandard
The effect
oTarget
Description
Returns an effect intended to replace eStandard if oTarget is a PC or a henchmen to a PC based on the game difficulty (GAME_DIFFICULTY_*).
Remarks
Specifically:
1) If the effect was fright and the game difficulty was very easy it would be converted to a -2 penalty on attacks.
2) If the effect was fright and the game difficulty was easy it would be converted to a -4 penalty on attacks.
3) If the game difficulty was very easy, the paralyze, stun, and confusion effects get converted to a daze effect.
4) No matter what game difficulty is set, charm and domination effects are converted to a daze effect.
Requirements
#include "nw_i0_spells"
Version
1.22
See Also
categories: | Spells Functions |
constants: | GAME_DIFFICULTY_* Constants |
author: Tom Cassiotis