
 /* Argo's first ward, modified by Frankie */
/*   based on Script generated by
http://www.lilacsoul.revility.com    */

//Put this OnEnter
void main()
{
object oPC = GetEnteringObject();

if (GetIsEnemy(oPC, GetObjectByTag("argo") ) )
{
    ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DIVINE_STRIKE_FIRE), oPC);
    AssignCommand(oPC, SpeakString("Augh! The pain!", TALKVOLUME_SHOUT) );
    object oStone = GetObjectByTag( "warningstone");
    AssignCommand(oPC, ClearAllActions( TRUE));
    AssignCommand(oPC, ActionMoveToObject(oStone, TRUE ) );
}

if (!GetIsPC(oPC)) return;

if (GetLocalInt(oPC, "NW_JOURNAL_ENTRY" + "argohelp" ) ) return;

ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DIVINE_STRIKE_FIRE), oPC);
DelayCommand(3.0, FloatingTextStringOnCreature("You feel the light pierce deep into your soul.", oPC) );

switch(GetAlignmentGoodEvil(oPC))
{
case (ALIGNMENT_GOOD):
    break;

case (ALIGNMENT_EVIL):
    ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectSlow(), oPC, 66.6f);

default:
    ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(d6(4), DAMAGE_TYPE_DIVINE, DAMAGE_POWER_ENERGY), oPC);
    ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectStunned(), oPC, 0.6f);
}

} /* end isgood1 */
