void main()
{
object oPC = GetLastUsedBy();
object oS = GetWaypointByTag("fr_iwd_ogre_jump1");
object oF = GetWaypointByTag("fr_iwd_ogre_pit1");

if (GetIsPC(oPC)== TRUE)
    {
    int nDex = GetAbilityScore(oPC, ABILITY_DEXTERITY);
    int nStr = GetAbilityScore(oPC, ABILITY_STRENGTH);
    int nDice = d20(1);
    int nScore = nDex + nStr + nDice;
    string sDex = IntToString(nDex);
    string sStr = IntToString(nStr);
    string sDice = IntToString(nDice);
    string sScore = IntToString(nScore);
    string sBigScore = "Test: "+sDex+"(dex) + "+sStr+"(str) + "+sDice+"(d20) = "+sScore;

    if(nDex + nStr + nDice >= 33)
        {
        AssignCommand (oPC,JumpToObject(oS));
        PlaySound("fs_hoof_large2");
        SendMessageToPC(oPC, sBigScore);
        }
    else
        {
        AssignCommand (oPC,JumpToObject(oF));
        PlaySound("fs_hoof_large2");
        SendMessageToPC(oPC, sBigScore);
        }
    }
}