38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
void main()
|
|
{
|
|
object oTarget;
|
|
effect eVFX;
|
|
effect eDamage;
|
|
object oActor;
|
|
|
|
// Get the PC who is in this conversation.
|
|
object oPC = GetPCSpeaker();
|
|
|
|
// Have "Kumal" perform a sequence of actions.
|
|
oActor = GetObjectByTag("Kumal");
|
|
AssignCommand(oActor, ActionPlayAnimation(ANIMATION_LOOPING_DEAD_FRONT, 1.0, 6.0));
|
|
|
|
// Have "Kumal" perform a sequence of actions.
|
|
AssignCommand(oActor, ClearAllActions());
|
|
|
|
// Have "Kumal" perform a sequence of actions.
|
|
AssignCommand(oActor, ActionWait(7.0));
|
|
|
|
// Cause damage.
|
|
eDamage = EffectDamage(15, DAMAGE_TYPE_ACID);
|
|
eVFX = EffectVisualEffect(VFX_IMP_POISON_S);
|
|
oTarget = GetObjectByTag("Kumal");
|
|
DelayCommand(8.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oTarget));
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX , oTarget);
|
|
|
|
// Have text appear over the PC's head.
|
|
DelayCommand(9.0, FloatingTextStringOnCreature("He suddenly stumbles and falls down dead.", oPC));
|
|
|
|
// Have text appear over the PC's head.
|
|
DelayCommand(11.0, FloatingTextStringOnCreature("He suddenly stumbles and falls down dead.", oPC));
|
|
|
|
// Cutscene functions:
|
|
DelayCommand(12.0, SetCutsceneMode(oPC, FALSE));
|
|
}
|
|
|