MagicalEffect(effect)

This function sets the effects sub type to magical.

effect MagicalEffect(
    effect eEffect
);

Parameters

eEffect


Description

Effects are one of three SUBTYPE_* (EXTRAODINARY, MAGICAL, SUPERNATURAL). This function sets the specified effects subtype to SUBTYPE_MAGICAL. Acts as a mutator for an effects subtype.



Remarks

SUBTYPTE_MAGICAL is the default subtype for all effects. See 3rd Edition DMG page 71 or MM page 7 for a description of ability classifications.


Version

1.22

Example

//Create a new polymorph effect.
Effect ePolymorph = EffectPolymorph (POLYMORPH_TYPE_PENGUIN);
//Pick your target
object oPC = GetFirstPC();
//Make it a magical effect…
ePolymorph = MagicalEffect(ePolymorph);
//Apply the affect…
ApplyEffectToObject (DURATION_TYPE_TEMPORARY, ePolymorph, oPC, 300.0);

See Also

functions: ApplyEffectAtLocation | ApplyEffectToObject | ExtraordinaryEffect | SupernaturalEffect
categories: Effects Functions
constants: SUBTYPE_* Constants


 author: Michael Nork, editor: Iskander Merriman
 Send comments on this topic.