PRC8_fork/trunk/racescripts/bdd_cave_ent.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

16 lines
452 B
Plaintext

// Cave entrance
#include "inc_dynconv"
void main()
{
object oPC = GetEnteringObject();
int nRanks = GetSkillRank(SKILL_SPOT, oPC);
if (nRanks > 5) // Can actually succeed
{
if (GetIsSkillSuccessful(oPC, SKILL_SPOT, 26)) // Have to spot the cave opening
{
AssignCommand(oPC, ClearAllActions(TRUE));
StartDynamicConversation("bdd_cave_conv", oPC, DYNCONV_EXIT_NOT_ALLOWED, FALSE, TRUE, oPC);
}
}
}