void main() { int nOK=0; object oPC=GetLastUsedBy(); string sDeity=GetDeity(oPC); int nHP; if (sDeity=="Bane"||sDeity=="bane") { nOK=1; } if (GetAlignmentGoodEvil(oPC)==ALIGNMENT_EVIL&&GetAlignmentLawChaos(oPC)==ALIGNMENT_LAWFUL) { nOK=1; } if (sDeity=="Cyric"||sDeity=="cyric") { nOK=0; } if (nOK==0) { nHP=GetCurrentHitPoints(oPC); nHP=nHP-1; ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectDamage(nHP,DAMAGE_TYPE_NEGATIVE,DAMAGE_POWER_PLUS_FIVE),oPC); ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_IMP_REDUCE_ABILITY_SCORE),oPC); AssignCommand(oPC,ClearAllActions()); AssignCommand(oPC,PlayVoiceChat(VOICE_CHAT_PAIN2)); AssignCommand(oPC,PlayAnimation(ANIMATION_LOOPING_DEAD_FRONT,0.5,100.0)); } SpeakString("Inscribed on this statue you see: Defy Bane and die - or in death find loyalty to him, for he shall compel it"); }