Alangara_PRC8/_module/nss/ke_selvrebsving1.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

39 lines
981 B
Plaintext

string sDeny;
string sVirk;
/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.6
For download info, please visit:
http://www.lilacsoul.revility.com */
//Put this OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "ke_reb")== OBJECT_INVALID)
{
sDeny="Part of the rock seemes to be smothened down by a rope";
SendMessageToPC(oPC, sDeny);
return;
}
object oDest = GetObjectByTag("ke_mystiskhulechasm1"); // way point tag.
location lDest= GetLocation(oDest);
effect eFly = EffectDisappearAppear(lDest);
effect ePulseWind = EffectVisualEffect(VFX_IMP_PULSE_WIND);
if(GetIsPC(oPC))
{
sVirk="Tobias' old rope takes hold of your wrist and swings you over the gap with great force";
SendMessageToPC(oPC, sVirk);
DelayCommand(1.8,ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eFly, oPC, 2.0));
DelayCommand(1.4,ApplyEffectToObject(DURATION_TYPE_INSTANT, ePulseWind, oPC));
}
}