UW2_PRC8/_module/nss/lichtrigger1.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

23 lines
561 B
Plaintext

void main()
{
object oPC = GetEnteringObject();
int oItem = GetHitDice(oPC);
if (oItem >= 20)
{
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)));
}
}