void main() { // ______________________________________________________________ // Wandered too close to the edge of the cliff means you fall. object oPC = GetEnteringObject(); if(GetIsPC(oPC)) { int iHeight = StringToInt(GetStringRight(GetTag(GetArea(oPC)), 1)); int falldmg = d8(iHeight * 10); SetLocalString(oPC, "di_fallstring", "You have fallen from the edge of the cliff!"); SetLocalInt(oPC, "di_falldmg", falldmg); object oTarget = GetObjectByTag("ihavefallen");// eventually this needs softcoded AssignCommand(oPC, JumpToObject(oTarget)); } }