Amon_PRC8/_module/nss/di_clifffall.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

17 lines
624 B
Plaintext

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));
}
}