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.
Effects, by default, start as magical and there is normally no need to use this function.
Maigcal effects can be dispelled (if applied from a spell script) and removed when resting.
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
void main()
{
//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: Jasperre
Send comments on this topic.