function EffectCharmed () Create a Charm effect
* Return type: effect
* Include file: nwscriptdefn
Note that this effect must be created by the faction you want the target to be neutral with. One of the faction members must be assigned the task of effect creation, otherwise the faction interrelationships may become messed up if a member of another faction (for example, STANDARD_FACTION_DEFENDER) generates the effect, especially with regard to the player party:
Note that this effect must be created by the faction you want the target to be neutral with. One of the faction members must be assigned the task of effect creation, otherwise the faction interrelationships may become messed up if a member of another faction (for example, STANDARD_FACTION_DEFENDER) generates the effect, especially with regard to the player party: <p> effect DoCharm(object oTarget) { </p> <p> effect eCharm = EffectCharmed(); </p> <p> eCharm = GetScaledEffect( eCharm, oTarget ); </p> <p> eCharm = SetEffectSpellId(eCharm, SPELL_WHATEVER); </p> <p> return eCharm; } </p> <p> void main() { </p>
function EffectCharmed () Create a Charm effect
* Return type: effect
* Include file: nwscriptdefn