PoA_PRC8/_module/nss/lichtrigger1.nss

23 lines
561 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
void main()
{
object oPC = GetEnteringObject();
int oItem = GetHitDice(oPC);
if (oItem >= 30)
{
object oSound = GetObjectByTag("falling");
SoundObjectPlay(oSound);
SendMessageToPC(oPC, "The floor is falling apart beneath you!.");
effect eBUMP = EffectVisualEffect(VFX_FNF_SCREEN_SHAKE);
ApplyEffectToObject(DURATION_TYPE_INSTANT,eBUMP,oPC, 3.0);
object oDrop = GetWaypointByTag("lichentrance");
//jump the PC to the destination
SendMessageToPC(oPC, "You have fallen into a secret chamber!");
DelayCommand(3.0,AssignCommand (oPC,JumpToObject(oDrop)));
}
}