void main() { object oPC=GetLastUsedBy(); int iDC = 24; int iBonus = GetAbilityModifier(ABILITY_DEXTERITY, GetPCSpeaker()); if (!((d20() + iBonus) >= iDC)) { DelayCommand(0.7,AssignCommand(oPC,JumpToObject(GetWaypointByTag("fr_log_west00"),FALSE))); } else { SendMessageToPC(oPC,"You failed to balance yourself, so you did not feel safe to cross."); } }