generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
28
_module/nss/angel_fly.nss
Normal file
28
_module/nss/angel_fly.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
#include "in_g_cutscene"
|
||||
#include "x0_i0_petrify"
|
||||
|
||||
|
||||
void FlyAway()
|
||||
{
|
||||
object oPC = OBJECT_SELF;
|
||||
|
||||
|
||||
effect eEffect1 = EffectVisualEffect(VFX_DUR_ELEMENTAL_SHIELD);
|
||||
effect eEffect2 = EffectVisualEffect(VFX_DUR_GLOBE_INVULNERABILITY);
|
||||
|
||||
RemoveEffectOfType(oPC, GetEffectType(eEffect1));
|
||||
RemoveEffectOfType(oPC, GetEffectType(eEffect1));
|
||||
|
||||
|
||||
GestaltApplyEffect(1.0, oPC, EffectVisualEffect(VFX_IMP_PULSE_WIND), INSTANT);
|
||||
|
||||
GestaltApplyEffect(0.0, oPC, EffectDisappear(), PERMANENT);
|
||||
}
|
||||
|
||||
void main ()
|
||||
{
|
||||
object oPC2 = GetLastSpeaker();
|
||||
ClearAllActions();
|
||||
SpeakString("Farewell and congratulations, "+GetName(oPC2)+".");
|
||||
DelayCommand(0.5, FlyAway());
|
||||
}
|
||||
Reference in New Issue
Block a user