nwn2
// Create a Dispel Magic Best effect.
// aOnDispelEffect will be called ONCE if ANY effects are removed
effect EffectDispelMagicBest(int nCasterLevel, action aOnDispelEffect );

Note: The aOnDispelEffect parameter has been added