#include "nw_i0_generic"
/*   Script generated by
Lilac Soul's NWN Script Generator, v. 1.6

For download info, please visit:
http://www.lilacsoul.revility.com    */

//Put this on action taken in the conversation editor
void main()
{

object oCreature;
   int nDM = 0; // 0 = no DM in game, 1 = DM is playing
   object oPC = GetFirstPC();
   while (GetIsObjectValid(oPC))
    {
       if ((GetIsDM(oPC)) || (GetIsDMPossessed(oPC)))
        {
           nDM = 1;
        }
       oPC = GetNextPC();
    }
   if (nDM == 0)
    {
     object oPC = GetPCSpeaker();

    object oTarget;
    oTarget = OBJECT_SELF;

    SetIsTemporaryEnemy(oPC, oTarget);

    AssignCommand(oTarget, ActionAttack(oPC));

    AssignCommand(oTarget, DetermineCombatRound(oPC));

     }
   else
    {
    SendMessageToAllDMs("The Nahual should attack when the rod is picked up.  This is automated if no DM is present.  THE DM MUST POSSESS THE NAHUAL AND ROLE PLAY AND/OR ATTACK AT THE APPROPRIATE TIME");


    }
}

