29 lines
639 B
Plaintext
29 lines
639 B
Plaintext
#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());
|
|
}
|