void main() { int nDamgRoll = d12(); int nDamg = nDamgRoll + nDamgRoll + nDamgRoll + nDamgRoll; object oDamager = GetLastDamager(); effect eDamage = EffectDamage(nDamg, DAMAGE_TYPE_ELECTRICAL); effect eVis = EffectVisualEffect(VFX_COM_HIT_ELECTRICAL); ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oDamager); ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oDamager); }