void main()
{
  object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR,PLAYER_CHAR_IS_PC);
  float fDistance = GetDistanceBetween(OBJECT_SELF,oPC);
  float fKnockdown = 12.0f;
  int nDexterity = GetAbilityScore(oPC,ABILITY_DEXTERITY);
  int nDexCheck = d10(3);
  if ((nDexCheck > nDexterity) && (fDistance < 15.0f))
  {
    ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectKnockdown(),oPC,fKnockdown);
    SendMessageToPC(oPC,"Dexterity check failed (" + IntToString(nDexterity) +
      " vs. DC " + IntToString(nDexCheck) + "). You slip and fall on the oily iron floor.");
  }
}
